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?