This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes how to send console output to a html page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "how to send console output to a html page" Watch "how to send console output to a html page" New topic
Author

how to send console output to a html page

Suresh Kumar Baddipudi
Greenhorn

Joined: Mar 09, 2009
Posts: 15

hi,
i wrote a java program, in that i used "System.out.println()" to print the output in the console. Now i want to print this output as a html page. output file is a simple physical HTML file. Please help me regarding this issue. Thanks in advance.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

Check out java.io.FileOutputStream or java.io.FileWriter. You can combine them with a PrintStream / PrintWriter to make it easier for you:

Don't forget to close the OutputStream!


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to send console output to a html page
 
Similar Threads
jsp httpunit new window question
how to send console output to a html page
how to print in java !!!
Call a jar file from PHP through command line
Passing ResultSet to JSP