Join any Number of Files into One File

Category:
Files and Directories
Type:
Snippets
Difficulty:
Intermediate
Author:
Arkadiy Olovyannikov

Version Compatibility: Visual Basic 5

More information:
'Using 'Private Sub Command1_Click() 'ConCatFiles "c:\temp.txt", "c:\autoexec.bat", "c:\config.sys", _ '"c:\msdos.sys" 'End Sub 'Result - output file "c:\temp.txt" is a sum of all three source files.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: