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 };
		String name01 = "O";
		String name02 = "OG";
		String name03 = "Omq";
		String st_data = "";

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

		byte[] 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();

	}

}
