in reply to Pipeing to a java input.

This is great guys. Thanks, it gets me started in the right direction. I should have specified that it is a GUI program.