Quickstart - writing to a file