+ 1

How can I write in a file that already exists without overwriting it?

In Java, if a file already exists, how can I write in it without losing what is already written? For example, if I have a file with one line written, how can I start from the second line?

13th Sep 2017, 7:52 PM
igokra
igokra - avatar
4 Respostas
+ 1
Done it! Now it is working! Thank you guys!
15th Sep 2017, 2:28 PM
igokra
igokra - avatar
0
Append method.
13th Sep 2017, 8:49 PM
josh mizzi
josh mizzi - avatar
0
Well, I guess I'm doing it right, but it is returning an error: FileWrite.java:67: error: cannot find symbol flout.close(); ^ symbol: variable flout location: class FileWrite 1 error Here is the code: https://code.sololearn.com/c3R5NuIgmmzV
15th Sep 2017, 2:23 PM
igokra
igokra - avatar