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();
}

278 total views, 4 views today

About: Mirthbees

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