Untitled


SUBMITTED BY: Guest

DATE: April 16, 2013, 12:27 a.m.

FORMAT: Text only

SIZE: 379 Bytes

HITS: 1139

  1. fi = open("myfile.txt", "r", encoding="windows-1252");
  2. fo = open("output.txt", "w", "utf-8");
  3. fo.write(fi.read());
  4. =>
  5. Reader fi = new InputStreamReader(new FileInputStream("myfile.txt"), "windows-1252"));
  6. Writer fo = new OutputStreamWriter(new FileOutputStram("output.txt"), "utf-8"));
  7. fo.write(fi.read()); // well, not exactly this syntax, but...

comments powered by Disqus