Hi,
I have IIS running on Windows 2000. I am trying to open a text file using VBScript within my ASP code, but the GetFile method causes the server to hang. Here's the code extract:-
I have surrounded the filename by quotes (" because it contains spaces.
Any ideas??
Alex
I have IIS running on Windows 2000. I am trying to open a text file using VBScript within my ASP code, but the GetFile method causes the server to hang. Here's the code extract:-
Code:
<%
Function ReadHTMLFile()
Dim objFSO
Dim objFile
Dim strFileName
strFileName = Chr(34) & _
Server.MapPath("/MyWebDev/sample1.txt") & _
Chr(34)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strFileName)
End Function
%>
I have surrounded the filename by quotes (" because it contains spaces.
Any ideas??
Alex