The I/O standard library will be called io
.
Opens file with name name
. mode
defaults to r
. Modes are:
'r'
: read mode;'w'
: write mode (clobbers file);'a'
: append mode (appends to end of file);'r+'
: update mode, all previous data preserved;'w+'
: update mode, all previous data erased;'a+'
: append update mode (same as
Saves any data written to f
.
Writes to f
.
Reads from f
.
Closes f
.
Sets the position in the file
standard in, out and error