Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- FileWriter outfile = new FileWriter("Outfile.txt");
- BufferedReader infile = new BufferedReader(new FileReader("Infile.txt"));
- char ch = 1;
- while (ch != -1) {
- ch = (char) infile.read();
- outfile.write(ch);
- }
- infile.close();
- // najverovatno ke treba i FileWriterot da go zatvoris na ist nacin ko reader-ot
- }
- catch (EOFException | FileNotFoundException eof) {}
- // ili tuka infile.close();
- }
Add Comment
Please, Sign In to add comment