import java.math.*; import java.io.*; public class TextToHTML{ public static void main(String arg[]){ try{ FileOutputStream fs = new FileOutputStream("TextToHTML.html"); OutputStreamWriter out = new OutputStreamWriter(fs); System.out.println("This is text to html convertor program:"); out.write("<html>"); out.write("<head>"); out.write("<title>"); out.write("Convert text to html"); out.write("</title>"); out.write("</head>"); out.write("<body>"); out.write("Welcome to html<br>This query through the java code"); out.write("<br>Welcome to Roseindia<br>This is good site"); out.write("</body>"); out.write("</html>"); out.close(); } catch (IOException e){ System.err.println(e); } } }