Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete from text file

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
I have a text file that looks like this:

test1
test2
test3
test4


and so on. How would I handle the situation if I had to delete "test3" from the text file. I really don't want to read this file and write to another one. Any ideas?

Thanks!
 
I really don't want to read this file and write to another one.
That's probably your best option. What reasons do you have for not wanting to do this?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top