I'd make this "private", rename it to ```_write_flat_file```