2010-03-11から1日間の記事一覧
その1なので例外処理も何もしていませんが、CSV形式の並び替えには十分使えます。 file_path = ARGV[0]read_file = open(file_path) write_file = open("result_" + file_path, "w")temp_lines = [] read_file.each do |line| temp_lines endtemp_lines.sor…
その1なので例外処理も何もしていませんが、CSV形式の並び替えには十分使えます。 file_path = ARGV[0]read_file = open(file_path) write_file = open("result_" + file_path, "w")temp_lines = [] read_file.each do |line| temp_lines endtemp_lines.sor…