Search and Replace in a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Tarun





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux