This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm trying to finish an assignment and need to write up some test results. I'd like to know if it's possible to send the screen output directly to a text file so I don't have to sit and type it all in.
Can anyone tell me if this is possible and how it is done.
Dmitry, 2 things: 1)I had never known that you could use c:\>java yourclass >out.txt it is very helpful and I'm glad I ran across your reply to Simon. 2)when using a printstream I thought you had to use outFile.close(); or is that just optional?