|
' ### Returns the contents of a file as a string
Function File_ContentsToString(ByVal strFilePath) Dim strTemp Dim objFSO Dim objF Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objF = objFSO.OpenTextFile(strFilePath) Set objFSO = Nothing strTemp = objF.ReadAll objF.Close Set objF = Nothing File_ContentsToString = strTemp End Function
|