This is a demonstration of taking a flat file that is separated by some
character and formatting the data into a table. This makes use of the
Tcl open command. The open command in NeoWebScript is a restricted
version of the regular open command. It allows the user's interpreter to
open files which are only in the current directory.
Name | $Price |
Watermelon | .30/lb |
Cantelope | .99ea |
Here are the contents of the data file (or you can
download it directly):
Name|$Price
Watermelon|.30/lb
Cantelope|.99ea
Also, click here to view
maketable.nhtml file as text.