cPath="c:\temp\"
cNewTxtFile="Newtxt.txt"
CREATE CURSOR MyTxt(cTxt M)
APPEND BLANK
FOR I=1 TO ADIR(MyArray,cPath+"*.txt")
APPEND MEMO cTxt FROM (cPath+MyArray(i,1))
ENDFOR
COPY MEMO cTxt TO (cNewTxtFile)
USE
MODIFY COMMAND (cNewTxtFile)
当然也可用低级文件相关命令函数实现