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.
AdminFile.ReadFromFile(FileName)
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")