package sample;

import java.io.FileOutputStream;

public class data_make {

	public static void main(String[] args) throws Exception {
		// TODO ꂽ\bhEX^u

		// byte[] bytes = { 0x00, 0x01, 0x02, 0x03, 0x04 };
		byte[] bytes = new byte[1024]; // Mobt@
		bytes[0] = 0x00;
		bytes[1] = 0x01;
		bytes[2] = 0x02;
		bytes[3] = 0x03;
		bytes[4] = 0x04;

		String name01 = "eXg1";
		String name02 = "eXg2";
		String name03 = "eXg3";
		String st_data = "";

		st_data = name01 + name02 + bytes[0] + bytes[1] + bytes[2] + bytes[3]
				+ bytes[4] + name03;


		
		
		
		byte[] bytes02 = new byte[1024]; // Mobt@

		for(int i=0;i<1024;i++){
			bytes02[i] = 0x00;
		}
		
		
		
		bytes02 = st_data.getBytes("UTF-8");

		// byte[] bytes02 = st_data;
		bytes02[0x30] = bytes[0];
		bytes02[0x31] = bytes[1];
		bytes02[0x32] = bytes[2];
		bytes02[0x33] = bytes[3];
		bytes02[0x34] = bytes[4];

		FileOutputStream fos = new FileOutputStream("C:\\tmp\\okwave.txt");
		fos.write(bytes02);
		fos.close();

	}

}
