<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"""Example of how to write to a file."""


def read_example():
    with open('/tmp/foo', 'r') as f:
        for line in f:
            print line


def write_example():
    with open('/tmp/foo', 'w') as f:
        for s in ['first', 'second', 'third']:
            f.write(s+'\n')
</pre></body></html>