Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eof file in binary file

Status
Not open for further replies.

ajikoe

Programmer
Apr 16, 2004
71
ID
Hello,

How can I read binary file if I know only the offset position and the type of it's element. Suppose all of the element in binary file has the same type.

Thanks
Pujo
 
Use a BinaryReader, and it's ReadBytes method to read x number of bytes from a stream.

To position the read point within the stream, use the BaseStream property of the BinaryReader, and use the Seek method.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top