This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes > a.txt..!    Is it possible. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " > a.txt..!    Is it possible." Watch " > a.txt..!    Is it possible." New topic
Author > a.txt..! Is it possible.

Suji N
Ranch Hand

Joined: Sep 04, 2001
Posts: 35
Hi Friends
see the below statement
java Hello > a.txt
By using the above statement the output of will be stored at a.txt.
Can we store the error messages using
javac in a txt file ??
i mean like > a.txt
If possible please tell me how can i store the error messages while compiling.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Here is a whole thread on the subject.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

In unix this

will redirect the errors to output.txt instead of your screen.

Please ignore post, I have no idea what I am talking about.
I agree. Here's the link:
subject: > a.txt..! Is it possible.
Similar Threads
Not able to write the output to the file.
Ant - check - file exists for deletion ?
Download file from FTP using java client
Compilation using classpath
File upload to a Remote server