YouTip LogoYouTip

Met Createtextfile Filesystem

# ASP CreateTextFile Method * * Complete FileSystemObject Object Reference Manual](#) * * * 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 FileSystemObject.CreateTextFile(filename[,overwrite[,unicode]]) FolderObject.CreateTextFile(filename[,overwrite[,unicode]]) | Parameter | Description | | --- | --- | | filename | Required. The name of the file to be created. | | overwrite | Optional. A Boolean value that indicates whether an existing file can be overwritten. True indicates that the file can be overwritten, False indicates that it cannot. The default is True. | | unicode | Optional. A Boolean value that indicates 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 * * Complete FileSystemObject Object Reference Manual](#)
← Met DeletefileMet Createfolder β†’