Results 1 to 2 of 2

Thread: Binary Reader

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2003
    Posts
    40

    Binary Reader

    Hi,
    I am reading information from a random-access-binary file.
    Each record has alot of booleans to read, yet i am unable to accrately measure the length of each record if i write booleans, thus its giving me a hard time reading them.

    I have a few inefficient solutions right now...
    1) write booleans as 0/1 bytes, and read them
    2) put booleans as 0s and 1s in singles/doubles

    yet i am feeling guilty about using these turnarounds... could someone please instruct me on how to read/write bits to a binary file?

    thank you

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Some quick suggestions

    Read up on Bitarrays and FileStream Objects. The first will help you encode / decode your data and the second will let you read / write it to disc.

    I personally think the whole disc IO thing is appalling in .net.

    One knew where one was with VB6!
    I don't live here any more.

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