import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
*
*/
public class Unicode {
public static void main(String[] args) {
final String filename = "Unicode.dat";
try {
FileWriter fw = new FileWriter(new File(filename));
for (int i = 27; i <= 125; i++) {
fw.write((char) i + " " + i + "\n");
}
fw.close();
System.out.println("Output file has been created: Unicode.dat");
} catch (IOException e) {
e.printStackTrace();
}
}
}
Comments
Leave a comment