Nguyễn Đức Thành
New member
How do I read a binary file?
Answer
To read from a binary file
Answer
To read from a binary file
- 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. …
- 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.