..
The CreateTextFile method creates a new text file in the current folder and returns a TextStream.
The method accepts three parameters in question:
dim fs, newfile
'I create an instance of the FileSystemObject
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'I create a new text file
September fs.CreateTextFile newfile = ("c: \ newfile.txt")
'We write in
newfile.WriteLine ("Hello World!")
'Close
newfile.close
'I cleaned
September newfile = nothing
Set fs = nothing
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |