close
Closes the file
read
Reads the content of the file. You can assign the result to a variable.
readline
Reads just one line of a text file
truncate
Empties the file.
write(‘stuff’)
Writes ‘stuff’ to the file.
seek(0)
Move the read/write head to the beginning of the file