outputting to a text file

Hi all,Is it possible to have my output printed in a text file? I just use the command prompt to run my program but I ultimately need to be able to save its output.Thanks,jjmclell
[207 byte] By [jjmclella] at [2007-10-2 23:35:04]
# 1
http://java.sun.com/docs/books/tutorial/essential/io/index.html
sabre150a at 2007-7-14 16:17:06 > top of Java-index,Java Essentials,New To Java...
# 2
HiTry piping the output.java Test >> a.txtwhere Test is a class file and a.txt is the destination file where u need your program output and ">>" is the piping symbol.Regards,Prasanth.C
PrasanthReddyCa at 2007-7-14 16:17:06 > top of Java-index,Java Essentials,New To Java...
# 3
If you're using unix/linux/whateverex, also take a look at the "tee" program.
paulcwa at 2007-7-14 16:17:07 > top of Java-index,Java Essentials,New To Java...