Well, you can use FOPEN() and FGETS() to get the different lines of the test file.
To determine columns, just figure out what would be used as a column separator and use AT() to figure that out.
When the # of columns or the size of the line changes, I would assume a new table.
I think by using these functions and a few more, you will have to trouble.
Joe
>I'm trying to figure out a way to parse tables, not the database
>type but the regular text type, out of plain text. The problem
>is basically where a text file might contain a table of stats or
>data and the algorithm would first of all recognize the text file
>as having one or more tables, and then decide how many columns the
>table has. I was wondering if anybody knows how to go about solving
>this problem. If you do, could you please give me some pointers on
>this?
>
>Thanks in advance.
>
>Regards,
>
>Fred Zhao
>Systems Programmer
>Market News Publishing
Joseph C. Kempel
Systems Analyst/Programmer
JNC