The IBinaryReader interface contains properties and methods to read binary data.
IBinaryReader
To read data saved in the binary format, initialize the stream linked to the place, from which data will be read. The following streams are available:
FileStream. The stream connected with the file on the hard drive.
MemoryStream. The stream in the computer memory.
Pass the created stream to the constructor of the BinaryReader class. On working with the constructor the object is created that enables the user to read data in the text format. After that it is possible to read data by using various methods of the IBinaryReader interface. The Eof property enables the user to control data reading and determine when all binary data is read.
Property name | Brief description | |
The Stream property returns the stream for working with a binary file as a bytes sequence. |
Method name | Brief description | |
The EndOfList method returns whether a binary file page end is reached. | ||
The ReadBoolean method reads a logical value from a binary file. | ||
The ReadChar method reads characters from a binary file. | ||
The ReadDateTime method reads date and time from a binary file. | ||
The ReadDouble method reads real numbers from a binary file. | ||
The ReadInteger method reads an integer value from a binary file. | ||
The ReadListBegin method reads an indicator of a page start from a binary file. | ||
The ReadListEnd method reads an indicator of a page end from a binary file. | ||
The ReadString method reads a character string from a binary file. |
See also: