[LUNI] How do I redirect the system print lines of a Java program to be written to a file

Kevin Conder kconder at interaccess.com
Wed Nov 14 09:46:00 CST 2001


On Wed, 14 Nov 2001, Venkataraman, Sunitha wrote:

>                        Thank you all for your previous help. I have yet
> another problem.. I have a java program that has system print lines. I want
> to capture all these in a file instead of just writing it out to the screen.

	Have you tried re-directing the output?

	So, instead of just typing:
	java myprogram

	Try this instead:
	java myprogram > out.txt

	This will put the output in a text file called "out.txt".

-- kevin at kevindumpscore dot com




More information about the luni mailing list