Hi,
I have written a program that outputs numerical results to the console in java(using eclipse). The problem that i have is that i want to copy or save the entire console content to a .txt file. How could i do this please? Thank you for your help
Hi,
I have written a program that outputs numerical results to the console in java(using eclipse). The problem that i have is that i want to copy or save the entire console content to a .txt file. How could i do this please? Thank you for your help
Last edited by puk284; 30-04-2009 at 06:00 PM. Reason: more clarity
Select all, Copy, command-control-N, paste is how we all usually do it.
Instead of coping and saving, you also have an option of redirecting console which will serve the same purpose.
For redirecting console to a file -
System.setOut(new PrintStream(new File("your file"));
Bookmarks