Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

birger

File editing

This topic is 5774 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a way to overwrite a part of a file with new data, or to delete only a part of a file, without having to recreate the whole file from the ground? Using open, lseek and write, I know I can INSERT data into a file at any location, but I also need to get rid of what was previously in that location!

Share this post


Link to post
Share on other sites
Advertisement
You are right, it does overwrite, just as I want. It was a problem with lseek that made me believe otherwise. It works fine now. Thanks.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!