What you want to do is open the original file and open a new output file say "userlist-output.txt" for writing. Then you just loop over the original file's contents and when you find the line you want to omit, simply don't output it to the new output file.
Frank Wiles <frank@revsys.com>
www.revsys.com
In reply to Re: Remove string from file
by ides
in thread Remove string from file
by bran4ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |