Previous in Contents Next in Contents

AdminFile.ReadFromFile Method

The ReadFromFile method returns the contents of the specified file. The contents of the file are returned as a text string.

The method returns the appropriate error when the file is not found, or cannot be accessed for reads.

Syntax

AdminFile.ReadFromFile(FileName)

Parameters

FileName
The path and filename to read.

Example

The following example opens the specified file and reads its contents into the variable strRet:

Dim strRet
strRet = objAdmin.ReadFromFile("C:\mscs\stores\newstore\newfile.asp") 

© 1997-2000 Microsoft Corporation. All rights reserved.