Michael
Sat Sep 11 13:22:32 CDT 2004
> How to process a file using OPEN and SEEK?
>
> I want to open a file in VBScript for processing. I could not found a
> function simlar to seek in the file system object.
> Is it possible to use the OPEN statement and seek statement in
> VBScript.
Using a TextStream object provided by an FSO method, you can do a forward
only seek via the Skip or SkipLine methods.
Or you can use an ADODB.Stream object that has a read/write Position
property that has the same effect as seek.
LoadFromFile Method (ADO)
http://msdn.microsoft.com/library/en-us/ado270/htm/mdmthloadfromfile.asp
Position Property (ADO)
http://msdn.microsoft.com/library/en-us/ado270/htm/mdproposition.asp
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US