On 10-10-06 04:07 AM, Amit Tomar wrote: > Hi all, > i would like to know how do i detect END OF FILE file in > ruby.is there > any EOF operator in ruby??? you can use IO.eof? http://www.ruby-doc.org/core/classes/IO.html#M002285 -- Kind Regards, Rajinder Yadav