|
|
|
Click here to copy the following block |
Sub ConcatenateFiles(ByVal resultFile As String, ByVal header As String, _ ByVal ParamArray sourceFiles() As String) Dim writer As System.IO.StreamWriter Dim reader As System.IO.StreamReader
Try writer = New System.IO.StreamWriter(resultFile, True) Dim fpath As String For Each fpath In sourceFiles writer.WriteLine(header.Replace("#FilePath#", fpath)) Try reader = New System.IO.StreamReader(fpath) writer.Write(reader.ReadToEnd() & Environment.NewLine) Finally If Not reader Is Nothing Then reader.Close() reader = Nothing End If End Try Next Finally If Not writer Is Nothing Then writer.Close() End Try End Sub |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|