You've to reference array items using loop variable. See correction inline.
>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[i,1]), "orders.txt",.t.)
>ENDFOR
--sb--