open() / Files (Python)

open() is the built-in function for reading from and writing to files. You give it a filename and a mode ('r' to read, 'w' to write, 'a' to append).