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.
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 \n and will completely ignore Carriage Return characters \r.This function will not return more than 8192 characters.