From: Charles Lowe Date: 2006-10-16T18:15:13+09:00 Subject: Re: Strange read behaviour on windows Eero Saynatkari wrote: > On 2006.10.16 15:41, Charles Lowe wrote: >> >> I switched to the i386-mswin32, but now I getting some more fundamental >> problems, when doing file reads. I'm typically getting reads back under >> the requested size, (not a problem), but this is generating premature >> EOF errors. If I just use File#read, I correctly get the entire file. > > Just on an off-chance, is your file open in binary mode? Oops. Now I feel like an idiot; 'rb' should be the default! :) stupid windows... Thank you though, had been banging my head against that one for a while. -- Posted via http://www.ruby-forum.com/.