search&replace in files by vb.net 2005 programm

  • Thread starter Thread starter Jan
  • Start date Start date
J

Jan

Hello!
I am looking for a way to do a search&replace in ASCII-Files by a
vb.net 2005 programm.
Of coarse I can open the files, loop to every line, make a replace, and
save the line.
But I wonder if there is a better and faster way to do it.

To make it clear: The search&replace must be done within a programm not
in the Framework or editor.

Best regards
Jan
 
Jan,

You have to get the data in memory, to investigate it.
Therefore there cannot be in my opinion a real better solution than you
wrote.

Keep in mind that maintainability is as well a criteria for a good program.

I hope this helps,

Cor
 
Back
Top