in reply to Get Result Of Exe File Into Another file

On unix systems you can simple type: java filename > output.
However this isn't related to perl.