in reply to Delete specific lines from txt file.
What part are you having trouble with? If it's actually removing the data from the file, then a typical method to do it is to write the data you want to keep to a new file. Then rename your data file to a backup version, and rename your new file with the original name.
You're welcome, and good luck.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Delete specific lines from txt file.
by FredFredFred (Initiate) on Aug 07, 2012 at 23:15 UTC | |
by roboticus (Chancellor) on Aug 09, 2012 at 21:02 UTC |