|
-
August 16th, 2008, 11:58 PM
#1
Reading Binary Files
How can yoy tell when you have reached the end of a binary file? There does not seem to be an End Of File function for this.
-
August 17th, 2008, 05:22 AM
#2
Re: Reading Binary Files
Can you post the code you're using.
Are you aware that you can do this :
Code:
string filename = "c:\\binaryfile.dat";
byte [] fileData = System.IO.File.ReadAllBytes(filename);
which reads the whole file into the byte array for you.
Darwen.
-
August 17th, 2008, 03:39 PM
#3
Re: Reading Binary Files
Thanks for your response. This is exactly what I was looking for.
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
|