Convert a text file to HTML

TXT2HTM is a program that reads an ASCII text file and writes a HTML file. User defined header and footer files will be added to the top and bottom of the HTML file.

HTML paragraph tags will be inserted if two carriage returns are found next to each other in the input file.

     Syntax is :- TXT2HTM  file [header] [footer]
If the program finds embeded codes within the text it will read the next line as a file name and insert or make a list. The embeded codes are <%INSERT%> and <%LIST%>

 For example :-

    Blah.............
    Blah......
    <%INSERT%>
    a:my-table.htm
    Blah.............
    Blah......

 Will insert the HTML file "a:my-table.htm" into the new HTML file.


        Example :- TXT2HTML TEST

        This will run the program and convert the file TEST.TXT to
        the file TEST.HTM  It will add the default file HEADER.HTM
        to the top and the default file FOOTER.HTM to the bottom of
        the HTML file.

        If different header or footer files are required they must
        be entered as command line parameters.


Back to the Index


This page was updated on 13 April 1997
by Terry Rawkins