Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help to get output from java compiler

Status
Not open for further replies.

TheOffspring

Programmer
Jul 3, 2000
1
DE
OK, is it possible to get the output from the java-compiler into a file or a stream  ????
 
Yes it is, i am assuming you are using the jdk kit running in dos.&nbsp;&nbsp;If you use the System.out.println command it sends data to dos video buffer.&nbsp;&nbsp;To get this data you need to use a old dos command. <br>run your program, ex. java class file &gt; whatever.txt<br>this will take all output from the class file and push it into a text file located in whatever.txt.<br>You can also take output or input from a text file using the stream classes.&nbsp;&nbsp;If you look on my website go to the C,Java,Programming page then look at sample java program and it would be project 7.&nbsp;&nbsp;Also the java kit includes alot of examples on how to use buffering input and output. good luck<br> <p>moses<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br>"In the beginning there was HTML, and it was good"<br>
by Nick Heinle, Designing with JavaScript<br>
<br>
<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top