This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 19649
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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