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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top