Close
Closes the file. Like file->save in your editor
read
Reads the contents of a file. You can assign the result to a variable
readline
Reads just one line of a text file.
truncate
Empties the file. Watch out if you care about the file.
write “stuff”
Wights “stuff” to the file.
seek (0)
Move the read/write location to the beginning of the file.