This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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: 986

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.
It's not a secret anymore!