in reply to Remove string from file

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