Skip to content
Matt Fichman edited this page Dec 20, 2012 · 8 revisions

Opens a stream to the file specified by 'path'. Returns 'nil' if the file cannot be found. The 'mode' parameter specifies how the file should be opened, and may be one of the following: "r": Open for reading; file must exist "w": Open for writing; creates a new file if 'path' doesn't exist "a": Open for appending; creates a new file if 'path' doesn't exist "rw": Open a file for reading and writing; file must exist

Clone this wiki locally