If files arent't to big you can use Filetostr() and Strtofile() functions
lcDir = < Some Directory >
lcResultFile = < ... >
DIMENSION laFileList[1]
= ADIR(laFileList, lcDir + "*.txt")
ERASE (lcResultFile)
FOR i=1 TO ALEN(
STRTOFILE(FILETOSTR(lcDir + laFileList[i,1]), lcResultFile, .T.)
ENDFOR
>Hi all:
>
>I have about 5 sdf type files in directory BA. I want to point to that directory and then copy the contents of each sdf file into one common file, one after the other? The number of sdf files in BA may vary from 1 to many also.
>
>How do I approach this? Thank you for taking the time to respond.
--sb--