Skip to content

Commit 47dd4a0

Browse files
Add files via upload
1 parent acb1777 commit 47dd4a0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

htmldoc.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import java.io.*;
2+
3+
class htmldoc{
4+
public static PrintStream source;
5+
public static void CreateHTML(String Path,String file,String title,String metaTags)throws FileNotFoundException{
6+
7+
source = new PrintStream(new File(Path + file));
8+
source.println("<!DOCTYPE html><html><head><title>"+ title +"<title>"+ metaTags + "</head><body>" );
9+
10+
}
11+
public static void AddHTML(String code){
12+
source.println(code);
13+
}
14+
public static void CloseHTML(String file,String title)throws FileNotFoundException{
15+
source.println("</body></html>");
16+
source.close();
17+
18+
}
19+
20+
21+
22+
}

0 commit comments

Comments
 (0)