What a great and simple solution! This was exactly what I was looking for. Thanks Sergey.
Robert Wright
STRTOFILE( FILETOSTR(lcFile1) + FILETOSTR(lcFile2), lcFile3 )
>What is the easiest way in VFP to concatenate two text files together? For instance, I would like to combine files: ABC.txt with file DEF.txt into a third file.
>
>File ABC.TXT =
>A data
>B data
>C data
>
>File DEF.TXT =
>D data
>E data
>F data
>
>The result file should contain ...
>A data
>B data
>C data
>D data
>E data
>F data
>
>I've used the DOS !COPY ABC.TXT+DEF.TXT command but this is clunky.
>
>Thanks,
>Robert