How to make HTML Tables

I have written a simple DOS program called HTML-TAB.EXE that will take any ASCII text file, must have a .TXT extension, and make it into a useful HTML table to be viewed via an Internet type browser.

Two things have to be done in order that the correct output is achieved :-

  1. Ensure that the first line of the ASCII file has a number of 'T' s to indicate the Tab settings for the data.
  2. The second line must have table heading data.

Example


         T        T       T
         Name     Rank    Serial Number
         Fred     Worker  123
         Bert     Boss    007
If data has been generated automatically by a spread sheet, data base or AutoCAD data extraction, then the top two lines will be missing. If one places this data in a file called TOP.TTT for example, then a batch file can be called to add the generated file to the top data.
       COPY TOP.TTT + GENDATA.TXT NEWDATA.TXT
       HTML-TAB NEWDATA Heading

Syntax

The program requires two parameters one for the file to be read, the other a table caption or heading.

The file has to have a .TXT extension but you do not enter this.

Example

     HTML-TAB TESTFILE Test

This will process a file named testfile.txt and make a newfile named testfile.html the caption for the table will be Test.

Test
Name Rank Serial Number
Fred Worker 123
Bert Boss 007

Back to the Index or Download the (22 k zip) file.

Please note, that within this zip file is a Pay2See file the charge is One US Dollar payable via the Pay2See system.

What to expect from Pay2See


This page was updated on 22 December 1998
by Terry Rawkins