ok, so I have read some tutorials on file streams, but i am still confused. I have made a program that edits a .txt (inputted by user) file, but my goal is to search an entire file for a string, and every time the string its found, I want it to be changed to a different string.
Some problems I have run into:
-it just skips through cin.getline(File, 255) without waiting for the user's input
- if I fout (fout is my ofstream thing) something, it deletes what is already in the file.
I pretty much need more info on fstreams. The tut i read was too complicated (i am 13 years old)
p.s. Sorry for the bad english, its 2:00 am here