N
NEWWebDeveloper
The folowing code reads the file correctly on my localhost
<%
Dim urltext, MYPath
MYPath = Server.MapPath("testread.txt")
Set Fconn = server.CreateObject("Scripting.FileSystemObject")
Set file = Fconn.OpenTextFile(MYPath,1,false)
output = file.readall
file.close
Set file = nothing
Set Fconn = nothing
Response.write output
%>
But when I upload it to my website I get a blank. The testread.txt
file is definitely present on the web site server
<%
Dim urltext, MYPath
MYPath = Server.MapPath("testread.txt")
Set Fconn = server.CreateObject("Scripting.FileSystemObject")
Set file = Fconn.OpenTextFile(MYPath,1,false)
output = file.readall
file.close
Set file = nothing
Set Fconn = nothing
Response.write output
%>
But when I upload it to my website I get a blank. The testread.txt
file is definitely present on the web site server