# ASCII to HTML Utility

Topics

:

Overview
Usage

Overview

The ASCII to HTML utility is a console-based program used to convert text files to HTML files.

Usage

You can pass one of several switches to the program from the command line to perform any one of the available operations. From the command line you can use a wildcard to specify a group of files, for example: *.txt would convert all files in the current directory that have a .txt extension. For a list of switches, execute the program with no arguments: "as2htm"

    Usage: as2htm [switches] infile.txt
    Switches:
              -c = Write comments in html file.
              -f = Write output to file: infile.txt = infile.htm
              -h = Write a document header and trailer.
              -l = Use .html file extension, defaults to .htm

The "-c" switch will write comments to the HTML file stating the name of the program that created it and the time and date it was generated. By default all comments will be omitted.

The "-f" switch is used to write the output to a file instead of the console. The resulting HTML file will use the same name as the text file with a ".htm" or ".html" file extension. NOTE: Existing HTML files in the program's working directory with the same name will be overwritten without prompting.

The "-h" switch is used to write a document header and trailer to the HTML file. The document header will be created based on the name of the text file being converted.

The "-l" switch will cause the resulting HTML file to use a ".html" extension instead of a ".htm" extension.

End Of Document