ADO » Stream » LoadFromFile

Version: 2.5

streamobject.LoadFromFile FileName
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.

Loads the contents of an existing file into an open Stream object.

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.


objStream.LoadFromFile "C:/Guru/Meditation/Chant17.txt"

See Also: