heres a simple way to make a html page with your program. For top list, or player summary, or whatever, in case anybody needs it.
path=path exist("c:\playerdata")
if path=0 then make directory "c:\playerdata"
set dir "playerdata"
files=file exist("topscores.html")
if files=0 then make file "topscores.html"
Above: You have to make a directory and a file before you can use it. the path exist tests to see if the directory is already created, if returns zero (false) it makes one.
delete file "c:\topscores.html" <---- you have to delete the old one to update it - or so it seems
open to write 1,"c:\topscores.html"
write string 1,"<center>" <--- you can put html code to make it sit on page right
write string 1,"<B>YOUR GAME NAME (c) YOUR COMPANY 2007<p>" <-- <B>=bold
write string 1,"<h3>PLAYER SUMMARY REPORT FOR:<br>" <-- <h3>=medium headline typeface
write string 1, playernumber$(1)+"."+playername$(1)+"</h3></B><p>"
ABOVE: </h3> is the end... everything between <h3> and </h3> will be printed on the page at that size. <h1> is the largest.
write string 1,"Your Points:"+str$(score(1))+" Your Rank:"+str$(ranking(1))+"<br>" <---- <br>= carriage return <p>=paragraph
write string 1,"DATE:--January, 2007(or put date$ here)<br>"
write string 1,"</center>" <--- tells browser to stop centering text
...then continue writing in scores, or other info as desired...
close file 1 <---- we're all done with the file... closing out
code without the remarks is here:
path=path exist("c:\planetdata")
if path=0 then make directory "c:\planetdata"
set dir "planetdata"
files=file exist("topscores.html")
if files=0 then make file "topscores.html"
else delete file "c:\topscores.html":make file "topscores.html"
delete file "c:\topscores.html"
open to write 1,"c:\topscores.html"
write string 1,"<center>"
write string 1,"<B>YOUR GAME NAME (c) YOUR COMPANY 2007<p>"
write string 1,"<h3>PLAYER SUMMARY REPORT FOR:<br>"
write string 1, playernumber$(1)+"."+playername$(1)+"</h3></B><p>"
write string 1,"Your Points:"+str$(score(1))+" Your Rank:"+str$(ranking(1))+"<br>"
write string 1,"DATE:--January, 2007(or put date$ here)<br>"
write string 1,"</center>"
close file 1