How to write files.