Search and Replace in a file

Tue Nov 7 07:38:00 GMT 2006

Hi all,

I am looking for a function that searches and replaces a string in a
normal text file. I managed to find functions for search and replace in
a string buffer but unable to do so for a file. 

It would be something like:
SeachAndReplace(Filename, SearchString, ReplacementString)

I try to use a buffer to store the entire file contents I fear (and
encountered) stack overflow. Or if someone could help me find a
lightweight library for this :)

Thanks to all in advance

More information about the Gcc-help mailing list