Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Concatenation
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00196434
Message ID:
00196446
Views:
40
Hi Mike,

If you're using VFP 6, this is quite simple to do using the FileToStr and StrToFile commands:


StrToFile(FileToStr('c:\file1.txt') + FileToStr('c:\file2.txt') , 'c:\file3.txt')

>Dear all,
>
>Is it possible to use the win32 api to concatenate files? I am hoping not to call the dos command and issue copy file1.txt+file2.txt file3.txt. I have looked briefly through the api documentation but none of the functions seemed to fit the bill.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform