By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,081 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,081 IT Pros & Developers. It's quick & easy.

FileSystemObject - OpenTextFile stucks

P: n/a
In my ASP (IIS 5.1), when I use oFile.OpenTextFile to open a file, the code
stucks.
How can I fix this problem? Thanks.

set oFile = CreateObject("Scripting.FileSystemObject")
strServerFileName = "files/fieldmap.txt"
If (oFile.FileExists(server.mappath(strServerFileName ))) Then
Const ForReading = 1
Set fSubmit = oFile.OpenTextFile(server.mappath(strServerFileNam e),
ForReading, False) --->> stuck here
end if
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
FSO Stucks: http://www.aspfaq.com/show.asp?id=2180

Ray at work

"Fie Fie Niles" <fn****@wincitesystems.com> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
In my ASP (IIS 5.1), when I use oFile.OpenTextFile to open a file, the code stucks.
How can I fix this problem? Thanks.

set oFile = CreateObject("Scripting.FileSystemObject")
strServerFileName = "files/fieldmap.txt"
If (oFile.FileExists(server.mappath(strServerFileName ))) Then
Const ForReading = 1
Set fSubmit = oFile.OpenTextFile(server.mappath(strServerFileNam e),
ForReading, False) --->> stuck here
end if

Jul 19 '05 #2

P: n/a
> FSO Stucks: http://www.aspfaq.com/show.asp?id=2180

sheesh, you've not even given it an i, lol, it'll be "flying blind" <gg>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Ray at <%=sLocation%> [MVP] <myfirstname at lane34 dot com> wrote in message
news:#S**************@TK2MSFTNGP12.phx.gbl...
FSO Stucks: http://www.aspfaq.com/show.asp?id=2180

Ray at work

"Fie Fie Niles" <fn****@wincitesystems.com> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
In my ASP (IIS 5.1), when I use oFile.OpenTextFile to open a file, the

code
stucks.
How can I fix this problem? Thanks.

set oFile = CreateObject("Scripting.FileSystemObject")
strServerFileName = "files/fieldmap.txt"
If (oFile.FileExists(server.mappath(strServerFileName ))) Then
Const ForReading = 1
Set fSubmit = oFile.OpenTextFile(server.mappath(strServerFileNam e),
ForReading, False) --->> stuck here
end if


Jul 19 '05 #3

P: n/a
Thanks! Unchecking the "Enable script blocking" in the Norton Antivirus
works !

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:#S**************@TK2MSFTNGP12.phx.gbl...
FSO Stucks: http://www.aspfaq.com/show.asp?id=2180

Ray at work

"Fie Fie Niles" <fn****@wincitesystems.com> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
In my ASP (IIS 5.1), when I use oFile.OpenTextFile to open a file, the

code
stucks.
How can I fix this problem? Thanks.

set oFile = CreateObject("Scripting.FileSystemObject")
strServerFileName = "files/fieldmap.txt"
If (oFile.FileExists(server.mappath(strServerFileName ))) Then
Const ForReading = 1
Set fSubmit = oFile.OpenTextFile(server.mappath(strServerFileNam e),
ForReading, False) --->> stuck here
end if


Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.