472,102 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

asp text files continously loading

Hey all i need a vb asp script which creates and writes to a text file on my webserver. My web server is my local machine and im using IIS on Windows XP Pro Service Pack 2.

Heres the code i am currently using

Expand|Select|Wrap|Line Numbers
  1. <%
  2. thetext="Write this text in the file"
  4. Set fs = CreateObject("Scripting.FileSystemObject")
  6. Set wfile = fs.CreateTextFile("c:\myfile.txt", True)
  7. wfile.Write (thetext)
  9. wfile.close
  10. Set wfile=nothing
  11. Set fs=nothing
  13. response.write("Text created")
  14. %>
The problem i face with any code i use to write/create a text file is that my browser keeps loading, it just continously loads without doing anything.

Any help would be great

Jun 17 '07 #1
0 930

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Randell D. | last post: by
1 post views Thread by BARTKO, Zoltan | last post: by
reply views Thread by leo001 | last post: by

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.