demo: file write