From: Ruby Newbee Date: 2009-12-09T16:41:56+09:00 Subject: Re: a gets problem On Wed, Dec 9, 2009 at 3:35 PM, Seebs wrote: > On 2009-12-09, Ruby Newbee wrote: >> But when I re-executed x = gets it always got a nil. >> Why this happens? Thank you. > > Because you convinced it that it had reached the end of file, and gets > returns a nil after you've reached end of file. > How to re-gets it then? Thanks.