METHOD:  Stream::LoadFromFile

Implemented in version 2.5

streamobject.LoadFromFile FileName

The LoadFromFile method is used to load the contents of a local file into an open Stream object. All existing data in the Stream object will be completely overwritten, and hence, will be lost. The position will also be set to zero, the start of the data.

There is one mandatory parameter.

The FileName parameter is a string that is the name of the file (including the path, if needed) to be loaded. This file must already exist, or an error will occur.

Code (VBScript):
objStream.LoadFromFile "C:/Guru/Meditation/Chant17.txt"
objStream.Flush

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information