From: pere.noel@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2006-10-18T22:40:14+09:00 Subject: Re: merging files with CR as EOL ? Robert Klemme wrote: > File.open("result.txt", "wb") do |out| > Dir["*"].each do |file| > File.open(file) do |in| > in.each_line do |line| > line.chomp! > out.write(line) > out.write("\r\n") > end > end > end > end yes right because within ruby the chomp is aware of the kind of line feed is there ! thanks !