Guest User

Untitled

a guest
Jul 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. try {
  2. FileWriter outfile = new FileWriter("Outfile.txt");
  3. BufferedReader infile = new BufferedReader(new FileReader("Infile.txt"));
  4. char ch = 1;
  5. while (ch != -1) {
  6. ch = (char) infile.read();
  7. outfile.write(ch);
  8. }
  9. infile.close();
  10. // najverovatno ke treba i FileWriterot da go zatvoris na ist nacin ko reader-ot
  11. }
  12. catch (EOFException | FileNotFoundException eof) {}
  13. // ili tuka infile.close();
  14. }
Add Comment
Please, Sign In to add comment