Jump to content
  • Advertisement
Sign in to follow this  
Lovens

[.net] File manipulator class

This topic is 4048 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

In my current project I need a file manipulation (biunary) class (.NET 2.0). Features I'm lloking for is: * finding a numeric value in the file * adding content of a buffer in a specific offset in the file * cut/paste section of the file and so on... I'm going to code it myself if there isn't an implementation but I'm sure somewhere there is a good implementation of what I want. I googled it and found nothing. So is there an implementation somewhere? Thanks in advance... Lovens

Share this post


Link to post
Share on other sites
Advertisement
Are you familiar with FileStream and BinaryReader/BinaryWriter? By using the ReadWrite attribute on a FileStream and creating a BinaryReader/BinaryWriter, I'm sure you accomplish the three tasks you specified without a huge amount of code. If you'd just like some examples, please be a bit more specific so that I might be able to post some code for you.

Share this post


Link to post
Share on other sites
I think you'd be better off coding it yourself if you're not under really tight time constraints. You'll learn a fair bit, and it can help when you're doing some network programming in the future as well. If you have particular questions while you're doing it, you can also post them here and there's a bunch of people here who can provide lots of good help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!