Easy Tutorial
❮ Met Abandon Met Contents Remove App ❯

ASP CreateTextFile Method



The CreateTextFile method creates a new text file in the current folder and returns a TextStream object for reading and writing to this 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. Indicates whether the file is created in Unicode or ASCII format. True indicates Unicode format, False indicates ASCII format. The default is False.

Example for File Object

Example for Folder Object


❮ Met Abandon Met Contents Remove App ❯