Results 1 to 5 of 5

Thread: Binary Streaming

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    2

    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 -_-

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    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!!

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    2

    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 >_>

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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
  •  



Click Here to Expand Forum to Full Width