Barry: > > I've checked a bit. I'm running Ruby from TextPad and > capturing output > > there. If I run the code there, I see > > the 'EOFError' output. But if I just open a dos shell and > run it, I get the > > _right_ output. > > What's your default directory when running the code? Is this a > permissions issue? > > > Dave Dave, in case you didn't see my "final" note on this, I eventually realized my mistake. I had setup Ruby to run from TextPad with the -d parameter. I configured Ruby in TextPad several weeks ago, and it didn't dawn on me until now that it was running in debug mode. Once I removed -d, the output was fine. Thanks for your help. Barry