Tech Support Forum banner
Status
Not open for further replies.
1 - 1 of 1 Posts

·
Registered
Joined
·
2,276 Posts
Hey Sahana,

So it creates a text file with the contents 1.0.0... is that all thats in the text file?

I have limited knowledge of vbscript so excuse me if i go wrong anywhere... I think this is the sort of thing you need to do:

Code:
dim fso, fileToGet, myfileStream, textToRead
set fso = CreateObject ("Scripting.FileSystemObject")
set fileToGet = fso.GetFile("c:\[b]<the file path etc>[/b]")
set myFilestream = fileToGet.OpenAsTextStream (1)
set textToRead = myFileStream.readAll;
myFileStream.Close
textToRead will then hold the entire contents of the txt file, if you only want a bit of it then use the read function(google it)

Cheers,
Jamey
 
1 - 1 of 1 Posts
Status
Not open for further replies.
Top