From: Tim Hunter Date: 2007-03-24T03:56:33+09:00 Subject: Re: Issues with pack/write on WinXP compared to Linux unknown wrote: > I'm sure that this has to do with CR/LF on DOS/Windows filesystems, > but I'm not sure how to fix: > > File.open('test', 'w') do |file| > file.write([10].pack('n')) #=> 2 [bytes] > end File.open('test', 'wb') do |file| -- Posted via http://www.ruby-forum.com/.