Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text parsing
Message
 
To
03/06/1998 15:08:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00104482
Message ID:
00104489
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform