TechArena Community

TechArena Community (http://forums.techarena.in/)
-   Software Development (http://forums.techarena.in/software-development/)
-   -   saving console content to file (http://forums.techarena.in/software-development/1171157.htm)

puk284 30-04-2009 05:55 PM

saving console content to file
 
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

Expertz 30-04-2009 06:38 PM

Re: saving console content to file
 
Select all, Copy, command-control-N, paste is how we all usually do it.

Zecho 01-05-2009 08:02 AM

Re: saving console content to file
 
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"));


All times are GMT +5.5. The time now is 11:21 AM.