I want to concatenate several text files structured in the exact same way, but I want to keep the first line only for the first file and kill that header line for the consecutive 20+ files. Thus far, I've been able to concatenate by using the following script, but I don't know how to avoid the first line.
Sub snb() 'This Macro opens all .txt files in a given path and concatenates them
c00 = "C:\some path" ' the path
c01 = Dir(c00 & "*.txt")
Location = "destination_path\" 'Here is where the combined file will be
DateStamp = CStr(Year(Date)) & CStr(Month(Date)) & CStr(Day(Date))
x = 0
Do Until c01 = ""
If x = 0 Then
c02 = c02 & CreateObject("scripting.filesystemobject").opentextfile(c00 & c01).readall
c01 = Dir
x = 1
Else
c02 = c02 & vbCrLf & CreateObject("scripting.filesystemobject").opentextfile(c00 & c01).readall '
c01 = Dir
End If
Loop
CreateObject("scripting.filesystemobject").createtextfile(Location & DateStamp & "_new.txt").write c02
End Sub