I have done some reasearch on how to create files in ASP and found this script: <%
How to create a file in ASP?
8
I have done some reasearch on how to create files
in ASP and found this script:
<%
thetext="Write this text in the file"
Set fs = CreateObject("Scripting.FileSystemObject")
Set wfile = fs.CreateTextFile("", True)
wfile.Write (thetext)
wfile.close
Set wfile=nothing
Set fs=nothing response.write("Text created")
%>
then I created an asp file containing only this script, named it
"create" and uploaded it on one account on one asp-supporting
free host. Then I tried to open that file using my IE6 browser
and received an error message. Then I checked my file manager
(on that free account) and saw that a new file (''myfile.txt") was
not created. I think I am missing something here. Can anyone,
please, explain to me what should I do in order to create files in ASP?
in ASP and found this script:
<%
thetext="Write this text in the file"
Set fs = CreateObject("Scripting.FileSystemObject")
Set wfile = fs.CreateTextFile("", True)
wfile.Write (thetext)
wfile.close
Set wfile=nothing
Set fs=nothing response.write("Text created")
%>
then I created an asp file containing only this script, named it
"create" and uploaded it on one account on one asp-supporting
free host. Then I tried to open that file using my IE6 browser
and received an error message. Then I checked my file manager
(on that free account) and saw that a new file (''myfile.txt") was
not created. I think I am missing something here. Can anyone,
please, explain to me what should I do in order to create files in ASP?
- sunconsultancy Banned
- [1] reply
- truckload-of-thoughts
- [1] reply
- ofir Banned
- [1] reply
- truckload-of-thoughts
- truckload-of-thoughts
Next Topics on Trending Feed
-
8