fileOpenFile

Opens a file for reading and writing in binary mode. Takes a filename. Returns a file handle, or 0 if the filename is null or the file cannot be opened.

File IO

Parameters & Returns

Parameters

filename String

Returns

Int

Quick Summary

Opens a file for reading and writing in binary mode. Takes a filename. Returns a file handle, or 0 if the filename is null or the file cannot be opened.

Technical Exegesis...

Opens the specified file in read/write binary mode ("r+b") and returns a file handle. Returns 0 if the filename is null or the file cannot be opened.

The file must already exist. Use this when you need to both read from and write to an existing file. The file position starts at the beginning. Always close the file with fileCloseFile when finished.

Example

Example.bam
; No example implemented yet