fromat write file