Creating an HTML file

J

jcd.news

Hello.
I have written an Html source code in a string.
For example : String s=" <html ><head> <meta .........</html>"
I want my java application to create an html file with this source
code on my hard disc.
How can I do it?
Thank you.
 
A

Arne Vajhøj

I have written an Html source code in a string.
For example : String s=" <html ><head> <meta .........</html>"
I want my java application to create an html file with this source
code on my hard disc.
How can I do it?

FileWriter possible wrapped in a PrintWriter was one way.

Arne
 
J

jcd.news

Seehttp://mindprod.com/applet/fileio.html
or you can use HunkIO which will write it to a file in one line.

Seehttp://mindprod.com/products1.html#HUNKIO

FileWriter is perfect. Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,054
Members
48,769
Latest member
Clifft

Latest Threads

Top