String Swapping Using fstream

Alrite, is there a way of coding an algorithm
That states, the user must enter a word that he/she wants
to swap with another word using text documents....
eg, say the user wants to swap the word "go" to "gone"
in a whole paragraph.Where would I put the cout statements
.....Thanks

You should read the document in memory substitute one word for another and write the updated document back.
You're saying to read the whole document, and then give back to the user
the new modified version of the document.????
Yes, I am.
Topic archived. No new replies allowed.