Remember to close the file after writing to it