Hi,
I cannot use the OpenTextFile method, it's never return and I get no
error message! Setting Response.Buffer=False, has no effect. No matter
if I use it ForReading or ForWriting, it never return. In the following
code, the problem occurs at line 3.
aFileName = Server.MapPath("WEB_PROD.htm")
set fs = server.CreateObject("Scripting.FileSystemObject")
set fso = fs.OpenTextFile(aFileName, ForReading, False)
s = ts.ReadAll
ts.Close
set ts = nothing
Response.Write s
any help will be appreciate.
thank you in advance
serge 2 1772 http://www.aspfaq.com/2180
-- http://www.aspfaq.com/
(Reverse address to reply.)
"Serge Myrand" <in**@softdelirium.qc.ca> wrote in message
news:40***************@softdelirium.qc.ca... Hi,
I cannot use the OpenTextFile method, it's never return and I get no error message! Setting Response.Buffer=False, has no effect. No matter if I use it ForReading or ForWriting, it never return. In the following code, the problem occurs at line 3.
aFileName = Server.MapPath("WEB_PROD.htm") set fs = server.CreateObject("Scripting.FileSystemObject") set fso = fs.OpenTextFile(aFileName, ForReading, False) s = ts.ReadAll ts.Close set ts = nothing Response.Write s
any help will be appreciate. thank you in advance serge
Thank you very much!
"Aaron [SQL Server MVP]" wrote: http://www.aspfaq.com/2180
-- http://www.aspfaq.com/ (Reverse address to reply.)
"Serge Myrand" <in**@softdelirium.qc.ca> wrote in message news:40***************@softdelirium.qc.ca... Hi,
I cannot use the OpenTextFile method, it's never return and I get no error message! Setting Response.Buffer=False, has no effect. No matter if I use it ForReading or ForWriting, it never return. In the following code, the problem occurs at line 3.
aFileName = Server.MapPath("WEB_PROD.htm") set fs = server.CreateObject("Scripting.FileSystemObject") set fso = fs.OpenTextFile(aFileName, ForReading, False) s = ts.ReadAll ts.Close set ts = nothing Response.Write s
any help will be appreciate. thank you in advance serge This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: JT |
last post by:
i have a text file that is used as a logfile for easier debugging. i am
using the OpenTextFile method to write to this file. this method exists
inside a logging function that can be called from...
|
by: jwallison |
last post by:
XPSp1/IIS 5.1
What am I doing wrong? The following code just hangs in asp page at
OpenTextFile() - and inet service manager just hangs if I try to unload app
at
this point -
<script...
|
by: Fie Fie Niles |
last post by:
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...
|
by: Simon K |
last post by:
I'm trying to write a .txt file with OpenTextFile method. This is working
alright, but since I'm using some danish characters and use Flash to read
the txt file I need to save the file as UTF-8 or...
|
by: Vladislav Moltchanov |
last post by:
In the following example code some thing is wrong:
<<<<<<<<<<
Sub OpenTextFileTest
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Dim fs, f
Set fs =...
|
by: Paul |
last post by:
In one place in my project, I need to create a text file. Each time it runs
it should overwrite the previous version. I use the following code and it
works fine:
FileLoc =...
|
by: ShieldsJared |
last post by:
Hello all,
So I recently found out about redirecting the Standard Output of a
vbscript back to my C# app but I've found a problem.
When I run a script that calls OpenTextFile, I do not receive...
|
by: itskaps |
last post by:
Hi all,
My following program code works fine on win 2K server but the same is not working on win2K3 server. It's showing error as page cannot be displayed. After debugging, I found that...
|
by: KoreyAusTex |
last post by:
If anyone can help me figure out the what the missing return statements are, I think it might be the fact that I need to add a return false in the getValue()?
import java.util.*;
public class...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |