|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Text files in ASP
Hello,
I am using the code below to open a text file in ASP: Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject") Set MyTextFile=MyFileObject.OpenTextFile(Server.MapPat h("file.txt")) When I upload it to my ISP's server it works fine, but I sually test my pages on my computer first. However, pages having this code seem to hang whereas the other ASP pages usually work. I test my ASP pages using the IIS that came with Windows XP Pro. How can I make this code work on my PC? Thanks |
|
#2
|
|||
|
|||
|
Does your ISP allow Filesystemobject to be used?
|
|
#3
|
|||
|
|||
|
I believe my ISP lets FileSystemObject work because otherwise the pages wouldn't work. It's my PC which doesn't seem to allow this function to work. How can I make it to do so?
|
|
#4
|
|||
|
|||
|
Ah you might need to set read/write permissions on the folder you are working on.
|
|
#5
|
|||
|
|||
|
I think the read/write permissions are OK because I can read and modify from an access database. The problem seems to do with the "createobject" function because Scripting.FileSystemObject also doesn't work on my PC but works on the ISP's server.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Text files in ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|