I am new to this as you may find out by reading the following. Hopefully one of you guys have a quick solution.
I have a text file as follows which is constantly appended to :
"testing1"
"testing2"
"testing3"
I want to read the last line of this file into a Variable for use later. I have done this so far:
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, ts, lastline
Set fso = CreateObject("Scripting.FileSystemObject"
Set ts = fs
penTextFile("text.txt", ForReading)
counter = 0
do while not ts.AtEndOfStream
counter = counter+1
lastline = ts.readline
loop
As you can see last line now has what i want but i need to strip off the speach marks so variable now has testing3..
Any help greatly recieved!!
I have a text file as follows which is constantly appended to :
"testing1"
"testing2"
"testing3"
I want to read the last line of this file into a Variable for use later. I have done this so far:
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, ts, lastline
Set fso = CreateObject("Scripting.FileSystemObject"
Set ts = fs
counter = 0
do while not ts.AtEndOfStream
counter = counter+1
lastline = ts.readline
loop
As you can see last line now has what i want but i need to strip off the speach marks so variable now has testing3..
Any help greatly recieved!!