fileReadInt

Reads a 32-bit integer from a file. Takes a file handle. Returns a 32-bit signed 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 32-bit integer from a file. Takes a file handle. Returns a 32-bit signed integer, or 0 if the handle is invalid or end of file is reached.

Technical Exegesis...

Reads a 32-bit signed integer from the file at the current position and advances the position by 4 bytes (sizeof(int)). 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 or structured data files.

Example

Example.bam
; No example implemented yet