REM Convert a plain text inot a HTML with <BR>
FILE GETNAME f$, "TXT"
print f$
FILE SPLITNAME (f$) path$, name$, ext$

OPEN #1: NAME f$
OPEN #2: NAME path$ & name$ & ".HTM"
ERASE #2         ! Note that no confirmation shall be done.
PRINT #2: "<HTML> <BODY>"
DO          
   LINE INPUT #1, IF MISSING THEN EXIT DO: s$
   PRINT #2: s$ & "<BR>"
LOOP
CLOSE #1
PRINT "</BODY> </HTML>"
CLOSE #2
PRINT "finished"
END


