The type to assign to the data read, one of the following:
•
|
integer[1], integer[2], integer[4], integer[8], float[4], float[8]. These types represent hardware data types. The integer[n] is an n byte integer, and float[n] is an n byte float. If datatype is not specified, it defaults to integer[1].
|
Specify the byte order b in which bytes are read for multi-byte data types, where b is one of the names big, little, network, and native.
|
- big and little specify big endian and little endian, respectively
|
|
- network specifies the network ordering (big endian)
|
|
- native uses the native byte ordering
|
|
If byteorder is not specified, then it defaults to network.
|
•
|
If file is the name of a file that has not previously been opened, ReadFile attempts to open the file before reading the data. In this case, ReadFile will also close the file after reading.
|
•
|
An error is raised if file is not a valid descriptor or if it is the name of a file that does not exist.
|