public class BinaryWriter {
//--------- One Dimensional Array -----------------------
public static void writeDouble(double[] data,String outputFile) throws IOException{
DataOutputStream out = new DataOutputStream(new FileOutputStream(outputFile));
for(int i=0; i<data.length; ++i){
out.writeDouble(data[i]);
}
out.close();
}
public static void writeDouble(float[] data,String outputFile) throws IOException{