Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-04-2009
Member
 
Join Date: Nov 2008
Posts: 20
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

Last edited by puk284 : 30-04-2009 at 06:00 PM. Reason: more clarity
Reply With Quote
  #2  
Old 30-04-2009
Member
 
Join Date: Dec 2007
Posts: 1,592
Re: saving console content to file

Select all, Copy, command-control-N, paste is how we all usually do it.
Reply With Quote
  #3  
Old 01-05-2009
Member
 
Join Date: May 2008
Posts: 2,293
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"));
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "saving console content to file"
Thread Thread Starter Forum Replies Last Post
Firefox prompting for saving PDF file Lachlann Technology & Internet 7 15-09-2011 10:23 AM
How to stop opera from saving tab content in cache memory Delisa Technology & Internet 3 29-08-2011 10:43 AM
Saving CFbsBitmap to File little-Jacqueline Portable Devices 4 22-04-2010 12:00 AM
File saving problem in Opera 10.1 Gavin.B Technology & Internet 5 25-12-2009 12:25 PM
Saving to JPG file DisCount Customize Desktop 3 13-09-2008 01:10 PM


All times are GMT +5.5. The time now is 04:33 AM.