Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Merge Text
Message
From
08/11/2004 17:02:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Merge Text
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00959378
Message ID:
00959378
Views:
34
I have a directory where text files accumulate. I'm looking for away to read how many text files are in the directory and then merge into one file. Each text file comes in with different names. The below is what I have but it keeps reading and inserting the same record, it won't read the next. Direction appreciated.

gnNumber = ADIR(gaText, '*.txt')

FOR i = 1 TO gnNumber
? STRTOFILE(FILETOSTR(gaText), "orders.txt",.t.)
ENDFOR
Next
Reply
Map
View

Click here to load this message in the networking platform