Maybe this is a simple question....
I'm using something like this to read a texfile and insert some text:
Set objlines = CreateObject("System.Collections.ArrayList")
While Not objInputFile.AtEndOfStream
strLine = objInputFile.ReadLine
and so so... the thing is that I'm not sure that when I use:
objlines.Insert objlines.Count - 25, mytext
to insert my text of 5 lines, this command actually appends to my output file in memory...
BTW, I'm using this to write my output:
For Each objLine In objlines
So base on that, if my original text file was 25 lines long now is 30 lines, correct? If so, how do I get to delete those 5 empty lines extra that now I don't want so my file is back to 25 lines for printing purposes?
Thanks In Advance