|
-
Aug 19th, 2005, 01:00 PM
#1
Thread Starter
New Member
Binary Streaming
I'm quite new to C#, and i was wondering how would i make a program that can read and write to a certain offset of a file, see im trying to make a tag creator/editor for the game Halo.
so i guess what im asking... is how would i make it so say... offset 40 of the file being opened (lets says its 3f 80), how would i get '1' to display in say textBox1... lol sorry if this is confusing :P
edit: i did some research and i found what i need to do, its called Binary Streaming, anyone know how to do this :P the tutorial i found isnt to noob friendly -_-
-
Aug 21st, 2005, 06:16 PM
#2
Re: Binary Streaming
look up the BinaryReader, BinaryWriter, and FileStream class in the System.IO namespace...
the StreamReader and StreamWriter classes could be helpful too
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Aug 21st, 2005, 10:24 PM
#3
Thread Starter
New Member
Re: Binary Streaming
do you think you could post an example source, im not good with tutorials or anything, im more of a visual learner >_>
-
Aug 22nd, 2005, 12:06 AM
#4
Re: Binary Streaming
The help topics have example code. You will have to read something whether it be help files, web pages or code examples posted here. None of them will be exactly what you want so you have to do some work yourself.
-
Aug 22nd, 2005, 01:43 AM
#5
Re: Binary Streaming
You can do something like this to move to position 40.
PS: Just remember to open the file between line one and two here...
Code:
BinaryReader br = new BinaryReader();
br.BaseStream.Position = 40;
- ØØ -
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
|