Create a template page in your favorite HTML editor.
Then, in each spot where you want data to go, place a "marker". For example:


<html>
<head>
<title>
This is the name of my page: %title
</title>
</head>
<body>
Here is data 1: %text1<br>
Here is data 2: %text2<br>
Here is data 3: %text3<br>
Here is data 4: %text4<br>
</body>
</html>

And then, in your program do this:

open the file
input the data into a variable
then do this:

Variable = Replace(Variable, "%title", title.text)

etc...

then save it.
Voila!