OK, DOS like most operating systems allows you to 'pipe' the output of programs(as long as the program doesn't take additional control) The charater that is used for a redirect is >
java saveScreenOutput > output.txt
You can also 'pipe' input using the <.
Hope this helps