From: Ville Mattila Date: 2005-10-19T16:51:58+09:00 Subject: Re: Byte order reading on windows versus unix in ruby Robert Evans writes: > 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? Try to open file with "rb" option i.e. File.open("foobar", "rb"). - Ville