How to skip First and Last Line of a text File
How can we skip the first line starting with "Header" and last line starting with "Trailer" while reading a text file
How are you reading the file? If the typical while not eof, readline then you could just insert a simple if readline contains "header" or "trailer" then don't store/use that line.
Set file = fso.OpenTextFile ("c:\test.txt", 1)
row = 0
line = "";
file.Readline '#discard first line.
textContents = ""
Do Until file.AtEndOfStream
content = content & line
line = file.Readline
dict.Add row, line