Groups | Blog | Home
all groups > inetserver asp general > november 2003 >

inetserver asp general : FileSystemObject


Aaron Bertrand [MVP]
11/16/2003 1:59:45 PM
www.aspfaq.com/2180

John
11/16/2003 8:35:54 PM
Hi!

I have written a sub routine which opens a file and write in it.
The code I wrote is the following:

Sub WriteToFile(afm,data)
Dim filename,objFSO,objFile
filename=afm

Set objFSO=CreateObject("Scripting.FileSystemObject")
Set objFile=objFSO.CreateTextFile(filename,true)
objFile.WriteLine data

objFile.Close

end sub

However, when I call the sub through the browser (I.E.) seems to take for
ages in order to handle the script.(when I remove the script evrything works
fine)
I Google it, and I found that maybe I should deactivate the anti-virus.I did
it.Nothing.

Any ideas?Please.The whole thing drives me crazy.I have done it before with
VB 6.0 and it worked pretty well.

Thnx John


AddThis Social Bookmark Button