C++prog,for editing text files!can anyone help?

I am working on a C++ prog. that edits text files by replacing all occurrences of a phrase with another one.I need to get 4 pieces of data from the user.Name of file,name of file to save to,phrase to replace,new phrase. Inform user once edited text is saved and how many occurrences have been replaced. I am new at C++ and have only a general knowledge on how to make this work. Can anyone help??Please!!!

Comments

  • : I am working on a C++ prog. that edits text files by replacing all occurrences of a phrase with another one.I need to get 4 pieces of data from the user.Name of file,name of file to save to,phrase to replace,new phrase. Inform user once edited text is saved and how many occurrences have been replaced. I am new at C++ and have only a general knowledge on how to make this work. Can anyone help??Please!!!
    :

    Hi,

    You could do this using the theory of [b]file I/O[/b], using the header file [b]#include [/b], together with the functions [b]fstream[/b] and [b]ofstream[/b].

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion