Data to Table, Example 1 Suppose we wish to create a table with two cells in each row, where the data is in a text file, called NAMES.TXT, as follows:
Calendar Studies , cal_stud.htm Date/Calendar Software, cal_sw.htm Date Function Library , cal_sw/dateconv/date_art.htm Encryption Software , crypto.htm Goddess Lunar Calendar, cal_stud/glc.htm ISO Date Format , cal_stud/formats.htm Julian and Gregorian Calendars , cal_stud/cal_art.htm Julian Day Numbers , cal_stud/jdn.htm Maya Calendar , cal_stud/maya.htm Maya Calendar Software, cal_sw/maya/mgc.htm Miscellaneous Software, misc.htm Running DOS Software from Windows , rundos.htm Year 2000 Problem , y2k.htmThe input and output files are specified in the usual way and other parameters are set up:
"Padding spaces" are spaces added to the beginning and end of the text in each cell to prevent it from adjoining the cell border. Using a non-zero CELLPADDING value in the TABLE tag has this effect but this also adds padding above and below the text, which we may not want.
Numbers are always aligned right, but the program allows us to specify that text should be centered; if not, text is aligned left.
It is possible to specify the width of the table, and to give values for the table border, cell padding and cell spacing by clicking on Specify width, border, cell padding and spacing, to produce the window:
In this example, clicking on Convert data to table creates the output file NAMES.HTM, which appears in a browser as:
Calendar Studies cal_stud.htm Date/Calendar Software cal_sw.htm Date Function Library cal_sw/dateconv/date_art.htm Encryption Software crypto.htm Goddess Lunar Calendar cal_stud/glc.htm HTML Utilities html.htm ISO Date Format cal_stud/formats.htm Julian and Gregorian Calendars cal_stud/cal_art.htm Julian Day Numbers cal_stud/jdn.htm Maya Calendar cal_stud/maya.htm Maya Calendar Software cal_sw/maya/mgc.htm Miscellaneous Software misc.htm Running DOS Software from Windows rundos.htm Year 2000 Problem y2k.htm
Example 2 Data to Table Easy HTML Construction Kit Home Page