How do I read a binary file?

How do I read a binary file?
Answer
To read from a binary file
  1. Use the ReadAllBytes method, which returns the contents of a file as a byte array. This example reads from the file C:/Documents and Settings/selfportrait. …
  2. For large binary files, you can use the Read method of the FileStream object to read from the file only a specified amount at a time.
20 июл. 2015 г.
 

Tìm kiếm

Back
Top