[try Beta version]
Not logged in

 
Can i edit the text file without writing the content of whole file again.

Mar 28, 2013 at 9:25am
Can i edit records stored in file without rewriting whole file again .?
Mar 28, 2013 at 3:50pm
This depends on the filsystem you are using. The most common filesystem allow replaceing contents but not insertion or removall of items.

Depending on the library you're using have look at lseek(), fseek() or seekg(). Have look into the man pages and this web pages references.
Topic archived. No new replies allowed.