How to read/write files in one step.