General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2000 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only