Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying text files
Message
From
29/06/2004 15:08:51
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00918608
Message ID:
00918611
Views:
6
>I have 3 text files that I want to merge into a new file from within Visual Foxpro. I can do this with the DOS "COPY" command but the long file names is a problem. Is there a windows based copy that I can use to acomplish the same result? Unfortunately the foxpro "COPY" commands only handles one file.
>
>Thanks


try
String1 = FileToStr("File1.txt")
String2 = FileToStr("File2.txt")
String3 = FileToStr("File3.txt")
StrToFile(String1+chr(13)+String2+chr(13)+String3, "NewTextFile.txt")
hope this helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform