Control Panel
Forum
Hosting Help
6 Months free Hosting (New!)
Resources
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
76790
Average new registrations per day (in last 7 days):
84
New Registration:
Open
Register Now
Home
»
Questions & Answers
»
FileSystemObject + OpenTextFile Taking too long time
FileSystemObject + OpenTextFile Taking too long time
3/20/2008
Author:
Ganesh Babu
http://aspspider.info/asganesh
ASP.Net
HI ,
I am working in Active Server Page(ASP). I am trying to create a simple text file in the server path. For that i have written the code like this,
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Wfile = Server.MapPath("MyFile.txt")
set file = fs.OpenTextFile(Wfile, ForWriting,True)
file.Write("FirstLine" & vbTab)
file.Writeline(Now())
file.close()
I noticed that, the line "Set file = fs.OpenTextFile..." is taking too time to execute. I think it is try to create the file for writing. Even I have given permission to the page for writing then its taking this much time to execute.
Can anyone pl help to solve this problem.
Thanks in Advance.
Ganesh.
Answers .............
Author:
wanganran
anran studio
Posted Date: 3/29/2008
http://aspspider.info/wanganran
Anran Studio
you may use asp.net instead of asp, that's faster than asp.
You must
login
to post answer for this question.
Partners
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies.
All Rights Reserved.