VERY SLOW performance of ASP files using File System Objects

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Bruce H Bussell

VERY SLOW performance of ASP files using File System Objects

Post by Bruce H Bussell »

Using Win 2000, IIS 5.0, MS Script 5.6, Remote Script 1.0b
IE 5.5sp2, ASP 3.0 Training Manual by IDG books, Norton AV 2002,
and my Editor = Textpad 4.5

Click on TextPad 4.5 Run in Browser for an ASP file that uses File System Objects, and performance of my IE 5.5 Sp2 Browser is so HORRIBLLY SLOW, that I have to cancel it. Most other ASP code works OK from TextPad 4.5. Any ideas on this problem.

See attached sample files:

asp_250-251_FileCreateEdit3.asp = creates a File system Objects text file


<HEAD>
<TITLE>New File Access Component Test</TITLE>
</HEAD>
<BODY>

New File Access Component Test

<PRE>
<%

Set myFileSystem=Server.CreateObject("Scripting.FileSystemObject")
Set myTextStream=myFileSystem.OpenTextFile("H:\inetpub\wwwroot\asp_webpages\newfile.txt", 1)

myTextStream.Write "This is the first line of text. This line of text does not contain a line break. "
myTextStream.WriteLine "This is the second line of text. This line ends with a line break."

myTextStream.WriteBlankLines(4)
myTextStream.WriteLine "End of Blank Lines"

myTextStream.Close

%>
</PRE>

</BODY>



asp_250-251_FileRead3.asp = reads the File system Objects text file


<HEAD>
<TITLE>New File Access Component Test</TITLE>
</HEAD>
<BODY>

New File Access Component Test

<PRE>
<%

Set myFileSystem=Server.CreateObject("Scripting.FileSystemObject")
Set myTextStream=myFileSystem.OpenTextFile("H:\inetpub\wwwroot\asp_webpages\newfile.txt", 1)

Response.Write(myTextStream.Read(42))
Response.Write("<HR>")

Response.Write(myTextStream.ReadLine)
Response.Write("<HR>")

Response.Write(myTextStream.ReadAll)
Response.Write("<HR>")
myTextStream.Close


%>
</PRE>

</BODY>
Post Reply