On Wed, Oct 6, 2010 at 10:07 AM, Amit Tomar <amittomer25 / yahoo.com> wrote: > Hi all, > i would like to know how do i detect END OF FILE file in > ruby.is there > any EOF operator ¨Âòõâù¿¿ Usually the ways of reading a file in Ruby are higher level, where the EOF is handled for you: content = File.read("file.txt") content = File.readlines("file.txt") File.foreach("file.txt") {|line| content << line} and so on. What are you trying to do? Jesus.