How to create a text/html file from java string ?

How to create a text/html file from java string ?


try {
File file = new File("ngd.txt");

// ngd.html for html file generation.
FileWriter fileWriter = new FileWriter(file);
fileWriter.write(html);
fileWriter.flush();
fileWriter.close();
} catch (IOException e) {
e.printStackTrace();
}

370 total views, 2 views today

About Mirthbees 672 Articles
Blogger, Innovator, Developer and Enterpreneur. Founder of GuruRecharge, Readymade online recharge script. Lead Developer in Bookrate.in

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.