The abstract base class for all I/O classes.
class io.IOBase
with open('spam.txt', 'w') as file: file.write('Spam and eggs!')