Update text file contents via a program

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an easy way to run a program to update the contents of a text file.
I want to read the file, line by line, and if I find the value 'x' i want to
replace it with the value 'y'. On larger computers you get some form of
Control language programs. Is there anything equivelant on XP?

Many thanks for your help in advance.

Steve
 
Is there an easy way to run a program to update the contents of a text file.
I want to read the file, line by line, and if I find the value 'x' i want to
replace it with the value 'y'. On larger computers you get some form of
Control language programs. Is there anything equivelant on XP?

Many thanks for your help in advance.

Steve

Why not open the file in Word or Wordpad, and do a search and replace?
 
Hi, thanks for your comment.
The reason I want to do this automatically is because I want to do it often,
to a variable file list containing hundreds of files.
 
Back
Top