can anyone give me a general syntax on how to delete a specific word from a text file.
for example the menu choice is delete a word and it prompts the user to enter the word to be deleted.
Read the entire file into memory. (Use a std::string.)
If the file is very big like those web server logs, then you can exhaust all the memory. A simpler approach would be read a line process, read another line using back the same memory process etc etc.
No, it is not a simpler process; reading in parts is more complex than read-at-once.
If he is playing with web server logs or other huge files, then he knows enough about programming to choose a method more suited to the task. For whatever else he is doing, what I said will suffice.