From: Mario Trento Date: 2012-03-29T04:41:44+09:00 Subject: copy file into new without dups, eol problem File.open("newf.txt", "w+") { |file| file.puts File.readlines("oldf.txt").uniq } Hi, I'm doing it like above on most recent 1.9.3 and I have mess with end of line char, it's simple ascii file, all runs on windows: oldf.txt:::===================================== 12/30/2011 02:12 AM 5,921,042 01 12/30/2011 02:12 AM 5,921,042 01 12/30/2011 02:12 AM 5,938,806 02 12/30/2011 02:12 AM 5,921,042 01 12 AM 5,921,042 01 - Andrea Bocel newf.txt:::===================================== 12/30/2011 02:12 AM 5,921,042 01 12/30/2011 02:12 AM 5,938,806 02 12 AM 5,921,042 01 - Andrea Bocel Is there any option I should check?? Tx Mario -- Posted via http://www.ruby-forum.com/.