hi, I'm in the middle of a problem working with text files in java.
How can I delete a certain line on a text file on Java?
I have a file like
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
111111111111111111111111111111
sadsdssssssssssssssssssss
sssssssssssssssssssssss
If I'd like to delete line 2 (the one with the 1111111111) how should I do it?
I don't need to know what's written there assume I only need to delete the line number 2(or any other number) of my text file?
It's easy to append text to the end of a text file, but deleting it seems to be really complicated. Any tips?
thank you
How can I delete a certain line on a text file on Java?
I have a file like
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
111111111111111111111111111111
sadsdssssssssssssssssssss
sssssssssssssssssssssss
If I'd like to delete line 2 (the one with the 1111111111) how should I do it?
I don't need to know what's written there assume I only need to delete the line number 2(or any other number) of my text file?
It's easy to append text to the end of a text file, but deleting it seems to be really complicated. Any tips?
thank you