469,929 Members | 1,819 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

Beginners question - textfiles

Hi there,
I was wondering if anyone could help me with this little problem. I
am running a Windows XP platform with IIS. I am using the following
code through Localhost to create a textfile:-

<%
Set fs = Server.CreateObject( "Scripting.FileSystemObject" )
Set textFile = fs.CreateTextFile( "c:\Inetpub\wwwroot\example.txt" )
textFile.WriteLine( "Example text" )
textFile.Close
%>

When I try to run this code through the browser, the page doesn't load
up...But instead the status bar keeps moving very very slowly.

Any ideas on this one?
Do I have to set anything up, if so please could someone point me in
the right direction...I am useless!!

Thanks,
Rish.
Jul 19 '05 #1
1 1197
d.

"Rish" <r1**@yahoo.com> wrote in message
news:14**************************@posting.google.c om...
Hi there,
I was wondering if anyone could help me with this little problem. I
am running a Windows XP platform with IIS. I am using the following
code through Localhost to create a textfile:-

<%
Set fs = Server.CreateObject( "Scripting.FileSystemObject" )
Set textFile = fs.CreateTextFile( "c:\Inetpub\wwwroot\example.txt" )
textFile.WriteLine( "Example text" )
textFile.Close
%>

If you're running an antivirus check: http://www.aspfaq.com/show.asp?id=2180

otherwise update your scripting module (www.msdn.com)

d.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jorgen Gustafsson | last post: by
4 posts views Thread by blah | last post: by
4 posts views Thread by Eggnog | last post: by
6 posts views Thread by William Foster | last post: by
4 posts views Thread by aman firoz | last post: by
1 post views Thread by =?Utf-8?B?UmFm?= | last post: by
reply views Thread by Dual_b00t | last post: by
19 posts views Thread by yltkhuu | last post: by
9 posts views Thread by Stef Mientki | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.