>>>>> "P" == Paul Pladijs <ppladijs / cage.rug.ac.be> writes:


 Try in binary mode

P>   File.open ("binaryfile.dat", "r") { |f|

     File.open ("binaryfile.dat", "rb") { |f|

P>     while ch = f.getc
P>       puts "read a character: #{ch}"
P>     end
P>   }



Guy Decoux