General information
Category:
Coding, syntax & commands
Hi Robert.
If I didn't want to bother with error checking I'd go with something like this -
StrToFile(FileToStr("ABC.TXT") + FileToStr("DEF.TXT"), "Output.txt")
Of course you probably want to wrap some error checking around that. :-)
Ian Simcock.
>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only