Adding a write to a file.