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

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

174 total views, 2 views today

Leave a Reply

Your email address will not be published. Required fields are marked *