From: Wes Gamble Date: 2006-12-14T02:32:15+09:00 Subject: Re: How to always write Windows style newlines to a file? I've done this in the past - is this the best way to do it? #Add a \r character on non-Windows platforms upload_file << "#{target.dump_output}" upload_file << "\r" unless Config::CONFIG['target_os'] =~ /win/ upload_file << "\n" -- Posted via http://www.ruby-forum.com/.