From: William James Date: 2005-09-01T14:01:23+09:00 Subject: Re: how to read binary file with char 0x1A hsun wrote: > Hi, > > I tried to read a binary file with a char '0x1A' (EOF on window I guess). > The method > > File::each_byte stops at this char. > > How can get it to read the whole file? Is there a binary mode for file operation? > > Thanks contents = open(filename, "rb") { |f| f.read }