Create HTML file in Notepad

Hi,

Can you create an HTML file using lotusScript? I plan to write an agent that will paste some text into notepad and then save it as an HTML file.

Any tips/pointers?

Thanks

Jamie

Subject: Create HTML file in Notepad

Try this fairly simple…

Dim fileNum As Integer

fileNum = Freefile()

Open "c:\test.html" For Output As fileNum

Print #fileNum, "<html>"

Print #fileNum, "<head>"

Print #fileNum, "<title>HTML File from LS</title>"

Print #fileNum, "</head>"

Print #fileNum, "<body>"

Print #fileNum, "</body>"

Print #fileNum, "</html>"

Close fileNum 

HTH

Sai

Subject: RE: Create HTML file in Notepad

Got it. Working a treat now.

Thanks.

Jamie