0

I have program that does OCR conversion using asprise plugin, now i want to save the whole console output to a text file. If somebody can point me in the right direction it would be very helpful.
By the way I use Eclipse.
Thanks.

Edited by shaquib65

3
Contributors
3
Replies
18
Views
3 Years
Discussion Span
Last Post by shaquib65
1

"the whole console output".
what you can do, is print the text you write there yourself.
at the very same place you call System.out.xx(x); just append the value of x to a textfile.

1

You can use System.setOut(PrintStream out) to send all your console output to a file instead of the console, without having to change any other code.

Edited by JamesCherrill

0

Thanks to both you sirs for helping me out, the setout method did the trick. Thanks once again.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.