Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing from a line delimited text file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094304
Message ID:
00094308
Views:
30
>I have a table with about 40 fields and I am wanting to write a program to import a text file into this table. The way I envision doing this is with 40 fgets() into 40 variables and then do an insert into with the 40 variables. Is the best way to accomplish this task?

I don't think so...I did it that way years ago, but now I use a dbf structure with Append From flatfile Type SDF.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform