|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
frontpage/interdev (filesystemobject)
<i><b>Originally posted by : bvlmv</b></i><br /><br /> im creating a filesystem object with this following code: <br /><br />dim ObjFSO,strPath,ObjOpenFile <br />strPath = Server.MapPath("info.txt") <br />set objFSO = server.createObject ("scripting.filesystemobject") <br />set ObjOpenFile = ObjFSO.OpenTextFile(strPath,1) <br />* ObjOpenFile.Writeline("hello") <br />ObjOpenFile.close <br />set ObjOpenFile = nothing <br />set ObjFSO = nothing <br /><br />when i use it on frontpage is works perfect, but for some reason when run the exact same code on interdev is gives me an error. in a process of elimination i get an error on the line with the * <br />i have all the txt file added to the directory, is there something i am not aware of? <br />thanks
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : sharjeel (sharjeel_ii@hotmail.com)</b></i><br />dim ObjFSO,strPath,ObjOpenFile <br />strPath = Server.MapPath("info.txt") <br />set objFSO = server.CreateObject ("Scripting.FileSystemObject") <br />set ObjOpenFile = ObjFSO.OpenTextFile (strPath,ForWriting) <br />ObjOpenFile.Writeline("hello") <br />ObjOpenFile.close <br />set ObjOpenFile = nothing <br />set ObjFSO = nothing <br /><br /><br /><br />------------<br />bvlmv at 5/30/2002 11:02:28 AM<br /><br /><br /> im creating a filesystem object with this following code: <br /><br />dim ObjFSO,strPath,ObjOpenFile <br />strPath = Server.MapPath("info.txt") <br />set objFSO = server.createObject ("scripting.filesystemobject") <br />set ObjOpenFile = ObjFSO.OpenTextFile(strPath,1) <br />* ObjOpenFile.Writeline("hello") <br />ObjOpenFile.close <br />set ObjOpenFile = nothing <br />set ObjFSO = nothing <br /><br />when i use it on frontpage is works perfect, but for some reason when run the exact same code on interdev is gives me an error. in a process of elimination i get an error on the line with the * <br />i have all the txt file added to the directory, is there something i am not aware of? <br />thanks
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > frontpage/interdev (filesystemobject) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|