Created
May 14, 2018 19:45
-
-
Save sharifulislam52/418536e8015d3818286b39ad10d2167c to your computer and use it in GitHub Desktop.
java : create html file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String html = "<h1>This is h1</h1><br><mark>Hello man what about you?</mark>"; | |
File f = new File("D:\\myHtml.html"); | |
try { | |
BufferedWriter bw = new BufferedWriter(new FileWriter(f)); | |
bw.write(html); | |
bw.close(); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment