CodeItBetter Programming Another VB Programming Blog

How to Merge a number of source files into a destination file

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
'Text File Handling - How to Merge a number of source files into a destination file
Private Sub mergeFiles(ByVal strDestinationFile As String, ParamArray strSourceFiles())
    Dim I As Long, strBuff As String
    Open strDestinationFile For Output As #1
    For i = 0 To UBound(strSourceFiles)
        Print #1, ""
        Print #1, "***"
        Print #1, "*** " & strSourceFiles(i)
        Print #1, "***"
        Print #1, returnContents(strSourceFiles(i))
    Next
    Close #1
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.