bgreenhouse
Technical User
Hi
I'm trying to do a small scale templating thing where I just pull the content text out of a text file, and insert it into the template. The server just hangs - no error messages, no response when I try to do it with the following code:
It just hangs - ANy suggestions?
Ben
I'm trying to do a small scale templating thing where I just pull the content text out of a text file, and insert it into the template. The server just hangs - no error messages, no response when I try to do it with the following code:
Code:
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
ContentFile = Server.MapPath ("home_page.txt")
if objFSO.FileExists(ContentFile) then
Set objbody_text = objFSO.OpenTextFile(ContentFile, 1,1)
Response.write ("ContentFile")
else
Response.write("nope")
End if
It just hangs - ANy suggestions?
Ben