Print all UTF8 to file
public static void main(String[] args) throws Exception {
FileOutputStream fout = new FileOutputStream("c:/temp/c.txt");
fout.write(255); //0xff
fout.write(254); //0xfe
int newLine=0;
for(int b=0; b<=255; b++) {
for(int c=0; c<=255; c++) {
fout.write(b);
fout.write(c);
newLine++;
if(newLine==90) {
fout.write(13);
fout.write(00);
fout.write(10);
fout.write(00);
newLine=0;
}
}
}
fout.close();
}
|