Last modified 5 years ago
File methods
- new(file, mode): opens a file for mode] (read by default). mode follows normal C semantics, i.e. "r" is read and "w" is write, and a "+" as the second character opens the file in both modes.
- write(obj): writes the string representation of obj to the file.
- read(bytes): returns a string with up to bytes from the file.
- readline: returns a string containing an entire line from the file.
- seek(position): sets file position to byte indicated by position.
- tell: gets current file position
- filesize: gets size of file
- close: closes the file.
