file_write_ver1