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

Can i edit records stored in file without rewriting whole file again .?
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.