Program writes to file.