Results 1 to 3 of 3

Thread: [2005] Binary files

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2007
    Location
    Sweden
    Posts
    50

    Resolved [2005] Binary files

    Hi

    I would like to learn how to use binary files.
    I have programmed with vb6 for a couple of years and now I use vb.net,
    But for some reason I have never learned anything about binary files.
    I would like to store files in a single file like WinZip without compression.
    Any one knows a simple tutorial to star with?
    I have searched on Internet but haven’t found any…

    Thanks!
    Last edited by jojo116; Apr 12th, 2008 at 04:14 AM.

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

    Re: [2005] Binary files

    There's actually a file format specifically for that. It's called TAR. You should read about that to see how it's structured for start. When you are ready to write a file you can either use a FileStream to write bytes to a file, or else use a BinaryWriter to write binary objects. I'd go with the BinaryWriter.
    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

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2007
    Location
    Sweden
    Posts
    50

    Resolved Re: [2005] Binary files

    I will look into that.

    Thanks

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