Java tutorial
//package com.java2s; import java.io.IOException; import java.io.OutputStream; public class Main { public static void writeAmrFileHeader(OutputStream out) throws IOException { byte[] header = new byte[6]; header[0] = '#'; // AMR header header[1] = '!'; header[2] = 'A'; header[3] = 'M'; header[4] = 'R'; header[5] = '\n'; out.write(header, 0, 6); } }