jack pashley wrote:I am trying to make an organizer for myself and my friends at school.
...
But what it is doing is just erasing the lines of text and adding the second line of code pleas help.
I think Christophe has answered your basic query, but it's worth remembering that file I/O is
extremely slow, so if I were doing something like this, I'd be tempted to read the whole thing into a List or Map of some kind and do all "updates" internally until the user specifically requests that they be "saved" - at which point I'd just write the whole darn thing out, overwriting the previous version.
It's also possible that the filesystem to which it's being written might be able to optimize this approach a bit better.
Winston