file = "epi4_center" f = open(file) out_file = "epi4_center.text" out = open(out_file,"w") # while str = f.gets v = str.chop.split("|") out.printf "%.3f %.3f 8 0.0 21 CM %s\n",v[0].to_f, v[1].to_f,v[2] end f.close; out.close
タグ: