Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void konvertuj(String in, String out) throws IOException {
- File frJm = new File(in);
- File fwJm = new File(out);
- if (frJm.exists() == true) {
- FileReader fr = new FileReader(frJm);
- BufferedWriter fw = new BufferedWriter(
- new OutputStreamWriter(
- new FileOutputStream(fwJm),
- "UTF-8"));
- int c;
- //System.out.println(fr.getEncoding());
- while ((c = fr.read()) != -1)
- fw.write(c);
- fr.close();
- fw.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement