gen_file