From: David Masover Date: 2008-06-05T03:25:13+09:00 Subject: Re: Beginner: Read file On Wednesday 04 June 2008 12:31:58 Michael Linfield wrote: > File.open("myfile") do |file| > file.each_byte {|x| puts x} > end > > The value of 'x' will be in ascii, I'll let you figure out how to > translate ascii back into text :) I believe that's why each_byte is depricated -- each_char will read each character, even when a character is more than a byte.