| Maptitude GISDK Help |
Reads a short (2-byte) integer from a binary file.
result = FileReadShortInt(file f [, array options])
| Argument | Contents |
|---|---|
| f | A file handle |
| Option | Type | Contents |
|---|---|---|
| Big Endian | Boolean | "True" if byte order is big endian, "False" (default) if little endian |
| Unsigned | Boolean | "True" if an unsigned integer, "False" (default) otherwise |
The short integer value read from the binary file.
The options array is an optional argument.
| Error Type | Meaning |
|---|---|
| Error | Cannot read the value from the file |
| Function | Summary |
|---|---|
| CloseFile() | Closes a file |
| FileWriteShortInt() | Writes a short (2-byte) integer to a binary file |
| OpenFile() | Opens a text or binary file on disk |
| ©2025 Caliper Corporation | www.caliper.com |