Forums

This topic is locked

write to a textfile

Posted 20 Jul 2001 13:29:58
1
has voted
20 Jul 2001 13:29:58 Bjorn Fripon posted:
Hi,

Here's a little (urgent) question ...

i'm using include files (txtformat)
i'm placing these with the Ultradeviant extension (dynamic include)
Now I want to WRITE to that textfile from another page. I thought there was an extension for this but i can't seem to find it on the exchange ...

Anyideas how to write to a textfile from UD ?

greetz

Jezter

Replies

Replied 20 Jul 2001 16:40:03
20 Jul 2001 16:40:03 George Petrov replied:
Very easy, just add the following code block:
<pre id=code><font face=courier size=2 id=code>
&lt;%
Set fso = CreateObject("Scripting.FileSystemObject"
Set MyFile = fso.CreateTextFile("c:\testfile.txt", True)
MyFile.WriteLine("This is a test."
MyFile.Close
%&gt;
</font id=code></pre id=code>

---------------------------------------
George Petrov - CTO, www.UDzone.com

www.UDzone.com : A Dreamweaver,
Dreamweaver Ultradev and Fireworks site
by developers for developers.
---------------------------------------

Reply to this topic