Yes indeed, Richard, it is a function who's result is not being captured - and in the very first few lines, too!

Luke - if you properly closed your output stream in the same manner, you'd have a stray "0" on the console, too.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D