Results 1 to 3 of 3

Thread: saving console content to file

  1. #1
    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

  2. #2
    Join Date
    Dec 2007
    Posts
    1,599

    Re: saving console content to file

    Select all, Copy, command-control-N, paste is how we all usually do it.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    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"));

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,819,970.00891 seconds with 16 queries