From: Aldric Giacomoni Date: 2010-01-13T04:33:06+09:00 Subject: SPOJ ? Test for end of file input Here's the problem: https://www.spoj.pl/problems/PROBTNPO/ It's pretty trivial, but it doesn't have a well-delimited "end" to it. In the forums, they indicate one should test for end of file. I have no idea how to do that in Ruby. I mean - I paste my code in a box, tell it to run and then they tell me if it worked or not. I can only suppose they're using the "-i" argument ... If so, how do I test for when that file has run out of stuff? -- Posted via http://www.ruby-forum.com/.