public byte mixWt(String fileName) throws IOException {
		FileInputStream is = null;
		DataInputStream dis = null;
		BufferedWriter br = new BufferedWriter(new FileWriter("mixWt_bin.txt"));
		NumberFormat formatter = new DecimalFormat();
	     formatter = new DecimalFormat("0.000E00");
		try {
			is = new FileInputStream(fileName);
			dis = new DataInputStream(new BufferedInputStream(is));
			int senones = (int)dis.readFloat();
			int gaussians = (int)dis.readFloat();
			int rows = gaussians/8;
			br.write("mixw " + senones + " 1 " + gaussians);
			br.newLine();
			if(gaussians > 8)gaussians = 8;
			for(int i = 0; i < senones; i++)
				{
				br.write("mixw [" + i +" 0"+"]");
				br.newLine();
				br.newLine();
				for(int j = 0; j < rows; j++)
					{
					for(int k = 0 ; k < gaussians; k++)
					br.write(formatter.format(dis.readFloat()) + " ");
					br.newLine();
					}
				}
			
		}
			catch(Exception e){
				e.printStackTrace();
				return 0;
			}
			finally{
				if(is != null)is.close();
				if(dis != null)dis.close();
				if(br != null){
					br.flush();
					br.close();
				}
			}
		return 1;
	}