in reply to using other files with program

If you don't put a newline (\n) after the Hello, some shells (e.g. most of the UNIX/Linux ones) will overwrite the Hello with the prompt hiding the result. Try using "Hello\n" and seeing if that helps.

HTH, --traveler