|
-
December 24th, 2009, 07:51 PM
#2
Re: Have some question about files
Strictly speaking, this makes no sense A file is a file, it's just a bunch of bytes. You can consider them as binary, hex, octal, whatever. It doesn't matter - they're still the exact same thing.
2. Reading the byte at a location other than the beginning of the file, like reading the byte at 0x1F.
That's what Stream.Seek is for. 0x1F is just an offset, so seek to that offset.
Saving the file as hex so that bytes like 00 do not become 20.
I don't know anything that automatically does that kind of conversion.
www.monotorrent.com For all your .NET bittorrent needs
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|