Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import any type of data
Message
From
27/09/2001 09:45:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/09/2001 09:36:25
Hisham Serry
Al-Bahar United Company
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00561382
Message ID:
00561392
Views:
23
>Hi Every Body,
>
>I need some help in importing a text file in order to write a copy file, but I know this file should be copied first with Fox2x database then I will take it back in the vf table so I would like some to wirte me this type of code in detail and how ever to name the file but insure that to show which one is the text file and which one the vf file, or if some one know a query which can import any type of files so i can use it.
>
>thanks

If APPEND FROM or IMPORT isn't flexible enough, you can read the file with FileToStr() and parse with alines() (or use low-level file-functions: fopen(), fread(), fgets(), fclose()), get an entire line or a few bytes at a time, and write to your DBF.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform