From: "JeremyWoertink@..." Date: 2007-10-23T09:08:50+09:00 Subject: Writing to a file help I am trying to read 1 file then create another file from that 1. My problem I am having is that my file is not being formated the same way I am telling it. So for example I have line_a = %{#{i.to_s.rjust(6, "0")}|#{array[0]}\|#{array[1]} #{array[2]} \|#{array[3]}\|#{array[4]}|#{array[5]}|#{array[6]} #{array[7]}| #{array[8]}|\n} out_file.write(line_a) the output is 000001|array0array1array2array3array4array5array6 | |||| || so basically my pipes and spaces are being appended to the end of my string after the "\n" any ideas? ~Jeremy