Is it possible to read through a file a line at a time and delete whatever lines meet a criteria that you set?
Printable View
Is it possible to read through a file a line at a time and delete whatever lines meet a criteria that you set?
You can read 1 line at a time, but you cannot delete it. If you need to delete certain lines, just read line by line and line that you don't want to delete write to the different file. Skip to write lines that you don't want to delete. When you finish writing to the new file, delete the old one and rename the new one.
Iouri Boutchkine
[email protected]
Thank you!!
Rate it if it helped you
Iouri Boutchkine
[email protected]