data export: single file write