You might be looking for the "file" Library, which has the same name as this class.
This is the file object. It used used primarily to read or write binary data from files.
The object is returned by file.Open.
Dumps the file changes to disk and closes the file handle which makes the handle useless.
next update Returns whether the File object has reached the end of file or not.
Dumps the file changes to disk and saves the file.
string File:Read( number length )
Reads the specified amount of chars and returns them as a binary string.
Returns the contents of the file from the current position up until the end of the current line. This function will look specifically for Line Feed characters <pre class="plain inline">\n</pre> and will completely ignore Carriage Return characters <pre class="plain inline">\r</pre>.This function will not return more than 8192 characters.