ADODB Object
 
Syntax
 
streamobject.LoadFromFile FileName
 
Description
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.
 
Parameter
Description
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.
See Also
Example
 
objStream.LoadFromFile "C:/myData/mySubFolder/Chant94.txt"
objStream.Flush