Easy Tutorial
❮ Asp Ref Request Asp Ref Application ❯

ASP CreateTextFile Method



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.

Syntax

Parameter Description
filename Required. The name of the file to create.
overwrite Optional. A Boolean value indicating whether an existing file can be overwritten. True indicates the file can be overwritten, False indicates it cannot. The default is True.
unicode Optional. A Boolean value indicating whether the file is created as a Unicode or ASCII file. True indicates the file is created as a Unicode file, False indicates it is created as an ASCII file. The default is False.

Example for FileSystemObject Object

Example for Folder Object


❮ Asp Ref Request Asp Ref Application ❯