>I need to "join" some text files into one, for example
> file1.txt, file2.txt... into filex.txt, is there a way to do this from visual foxpro.
>
>The only way I know is using the COPY command from MS-DOS,
> !COPY file1.txt+file2.txt filex.txt
>
>I'd like to find another way.
>
>Thanks
You can use Filetostr() and Strtofile() functions.
Erase ("filex.txt")
Strtofile( Filetostr('file1.txt"), "filex.txt"), .t.)
Strtofile( Filetostr('file2.txt"), "filex.txt"), .t.)
...
Strtofile( Filetostr('filen.txt"), "filex.txt"), .t.)
--sb--