ReadFile
This command will read data from a file on the server. String data or binary data can be read.
Group: Server Extensions
Syntax: [bOK =] Server.ReadFile(sFileName, vData)
bOK (Boolean) Optional – the success or failure of the command.
sFileName (String) specifies where on the server the file should be found
vData (Variant) contains the data read from the file. String or binary data is allowed.
Example:
Dim bOK As Boolean
Dim vData As Variant
Dim sFile As String
sFile = "C:\Program Files\MyFile.txt"
bOK = Server.ReadFile(sFile, vData)