Complete Folder Object Reference
The CreateTextFile method creates a new text file in the current folder and returns a TextStream object that can be used to read from, or write to the file.
| Parameter | Description |
|---|---|
| filename | Required. The name of the file to create |
| overwrite | Optional. A Boolean value that indicates whether an existing file can be overwritten. True indicates that the file can be overwritten and False indicates that the file can not be overwritten. Default is True |
| unicode | Optional. A Boolean value that indicates whether the file is created as a Unicode or an ASCII file. True indicates that the file is created as a Unicode file, False indicates that the file is created as an ASCII file. Default is False |
Complete Folder Object Reference
Your message has been sent to W3Schools.