file editing


I opened the already existing file in it . I want make some changes in it . Ios append will write at end .. How to edit at middle of file how to approach at that certain position
Thanku
Read this :

http://www.cplusplus.com/reference/istream/istream/seekg/


Also you can copy the whole text file to a string and insert whatever you want
inside it at any position or replace a substring with another..

http://www.cplusplus.com/reference/string/basic_string/insert/
http://www.cplusplus.com/reference/string/basic_string/replace/
thankyou ... :)
Topic archived. No new replies allowed.