Simplified file writing.