In a large file, how to replace the certain word?
Is there is a way to delete a particular line or word
in file?
EDIT:
My file is quite large. I cannot load entire file in to buffer and replace the buffer to file
In a large file, how to replace the certain word?
Is there is a way to delete a particular line or word
in file?
EDIT:
My file is quite large. I cannot load entire file in to buffer and replace the buffer to file
read each line from the file into a string, then apply std::string's replace (http://www.cplusplus.com/reference/string/string/replace/)