Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with reading from multiple text files
Message
From
01/03/2005 22:38:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/03/2005 22:11:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00991855
Message ID:
00991857
Views:
15
For multiple folders, search in the download section for adir() replacements (keyword: adir). adir() will only work with a single folder, and you would have to take care of recursion. That is, you curse over and over again (re-curse) while you try to make things work <g>.

Seriously, recursion is a very powerful tool, but it is probably simpler to use ready-made tools from the download section.

>how do i get a list of all filenames with a .dat extension stored in a folder? also, i want to read data from these files and append it to a table.
>
>do i save first all files with .dat in an array, then read and append them one by one in a table?
>
>there are multiple folders too, with folder names such as reg01 to reg14.. i want to be able to read in each folder all files with .dat extensions.
>
>how do i do that?
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