I don't know anything about C++(really I'm forgetting it)..
but mainly you should first read your text file to end and push it in a string variable then work on that string for replacing your text and write your changed string to a new file.(here you should write replace function if you cant use any special function in STL)
_____________
Mehdi.
software student.
|