fileFileSize

Returns the size of a file in bytes. Takes a filename. Returns the size of the file in bytes, or 0 if the filename is null or the file doesn't exist.

File IO

Parameters & Returns

Parameters

filename String

Returns

Int

Quick Summary

Returns the size of a file in bytes. Takes a filename. Returns the size of the file in bytes, or 0 if the filename is null or the file doesn't exist.

Technical Exegesis...

Returns the size of the specified file in bytes. Returns 0 if the filename is null or the file doesn't exist.

Uses _stat to retrieve file information. The file doesn't need to be open. Useful for allocating buffers or validating file sizes before reading.

Example

Example.bam
; No example implemented yet