Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy 2 files to 1 file?
Message
 
 
To
02/02/2001 17:11:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00472021
Message ID:
00472034
Views:
40
>I want to merge 2 text files together. I tried the following MS-DOS command
>with the VFP RUN command (like below... but it does not work):
>RUN copy MyFile1+MyFile2 MyFile3
>
>How can I do that?

run type myfile1 > myfile3
run type myfile2 >> myfile3

The double greater than signs mean append to existing file.

If you are using VFP 6 why not use the FileToStr() and StrToFile() functions?
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform