473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

FileSystemObject - OpenTextFile stucks

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
3 1928
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
> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fedroz | last post by:
Hi! Here is my problem: I'm trying a simple script copied by MSDN for read a text file and put the content on output web page! I use the following code: Const ForReading = 1, ForWriting = 2,...
4
by: StumpY | last post by:
Hi I am trying to append information collected from a form into a text file (already created and currently in the root of my web) on my ISP's webserver. The code snippet causing the problem is;...
3
by: bt | last post by:
I am just beginning with asp and have gotten an error that I need some help with. I posted a pair of files to an online ASP host server. The files are in the same directory; one is readfile.asp...
2
by: John Cummings | last post by:
I have inherited form that requires me to use the FilesystemObject to write to a file. I have to use Javascript to instantiate and use the object. I think that I am having a problem as far as...
4
by: Tony | last post by:
I am trying (unsuccessfully) to open a file using fso.OpenTextFile. I have given Full Trust to the assembly in Code Groups and Assembly Trust. I have added IUSR and IWAM as users. I have checked...
5
by: Edward Low | last post by:
Hi, I am having ASP with the following code to access the file with windows scripting host. The page run on local server IIS 5.1 on Win XP Pro SP2. The IE never show me any error with this, but...
0
by: Amanda Byrne | last post by:
I'm trying to set up a simple guestbook script on my ASP-based site. The code is not working and is not throwing errors, and I suspect it is because the FileSystemObject is not liking the relative...
3
by: brigitte | last post by:
The original problem: I need a procedure to import a csv file created by a third party application into an Access database. This file contains fields which may include commas, and when they do,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.