Click to See Complete Forum and Search --> : Reading Binary Files


softweng
May 15th, 2001, 01:03 PM
What is the most efficient or best way to read a binary file? I need to read the file in blocks
of 1000 bytes at a time. Can you read each byte seperatly or is there a better way to read a
certain number of bytes? I need to do something like this:

Variable1 = First 1000 Bytes Of File
Variable2 = Second 1000 Bytes Of File
Variable3 = Third 1000 Bytes Of File

If anyone has any ideas it is greatly appreciated!!!

Kris
Software Engineer
Phoenix,AZ

coolbiz
May 15th, 2001, 01:09 PM
If I'm not mistaken, Input() or InputB() function can do the trick.

-Cool Bizs

softweng
May 15th, 2001, 01:12 PM
That's exactly it! i was reading it in MSDN the same time you responed. Thanks a lot for
the help. I appreciate it!

Kris
Software Engineer
Phoenix,AZ