outfile = File.new("out.txt","w")
File.open(gets.chomp) do |file|
file.each_line do |line|
a,b,c=line.chomp.split(/\t/)
outfile.write a+" "+c+" "+b+"\n"
end
end
outfile.close
outfile = File.new("out.txt","w")
File.open(gets.chomp) do |file|
file.each_line do |line|
a,b,c=line.chomp.split(/\t/)
outfile.write a+" "+c+" "+b+"\n"
end
end
outfile.close