469,934 Members | 1,858 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

asp text files continously loading

27
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"
  3.  
  4. Set fs = CreateObject("Scripting.FileSystemObject")
  5.  
  6. Set wfile = fs.CreateTextFile("c:\myfile.txt", True)
  7. wfile.Write (thetext)
  8.  
  9. wfile.close
  10. Set wfile=nothing
  11. Set fs=nothing
  12.  
  13. response.write("Text created")
  14. %>
  15.  
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

Thanks
Jun 17 '07 #1
0 885

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
By using this site, you agree to our Privacy Policy and Terms of Use.