From: "Ara.T.Howard" Date: 2005-09-01T21:35:10+09:00 Subject: Re: how to read binary file with char 0x1A On Thu, 1 Sep 2005, 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 open(path, 'rb') do |f| ... end hth. -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================