read a file and replace certain lines
Posted on 2002-06-13
How would I read through a file and replace lines that contain a certain word?
The following test file is in existence
name, age, interests
bill, 30 , Football
Mark, 15 , Computers
Jill, 10 , Nothing!
If I wanted to loop through this file and replace the line containing Mark's age and interests with something else how would I go about that?