fileReadShort

Reads a 16-bit short integer from a file. Takes a file handle. Returns a 16-bit signed short integer, or 0 if the handle is invalid or end of file is reached.

File IO

Parameters & Returns

Parameters

fileHandle Int

Returns

Int

Quick Summary

Reads a 16-bit short integer from a file. Takes a file handle. Returns a 16-bit signed short integer, or 0 if the handle is invalid or end of file is reached.

Technical Exegesis...

Reads a 16-bit signed short integer from the file at the current position and advances the position by 2 bytes (sizeof(short)). Returns 0 if the handle is invalid or end of file is reached.

Reads the data in native binary format. Useful for reading binary file formats that use 16-bit integers.

Example

Example.bam
; No example implemented yet