From: Robert Evans Date: 2005-10-19T16:57:23+09:00 Subject: Re: Byte order reading on windows versus unix in ruby :-) Just found it. Thanks! On Oct 19, 2005, at 12:46 AM, Stefan Schmiedl wrote: > On Wed, 19 Oct 2005 09:38:43 +0200, Robert Evans > wrote: > > >> I have written some code that reads bytes from a file in bigendian >> order (the file was written in big-endian order). It works fine on >> unix, but on windows it dies when it encounters 1a, also known as >> 26 also known as ctrl-z also known as an eof character in dos. >> This causes the read to stop. Is this a known bug? Is something >> else going on here? >> >> Thanks in advance, >> Bob Evans >> >> >> > > File.open("name", "rb") > > s. > >