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.
In reply to Re: Delete specific lines from txt file.
by roboticus
in thread Delete specific lines from txt file.
by FredFredFred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |