Microsoft® Visual Basic® Scripting Edition
CreateTextFile Method
| Language Reference 
|
Home | Site Map |

 

See Also                   Applies to


Description
The CreateTextFile method creates a specified filename and returns a TextStream object that can be used to read from or write to the file.

Syntax

CreateTextFile(filename[, action][, overwrite][, unicode])

The CreateTextFile method has these parts:

Argument Description
filename Required. String expression naming the file to create.
action Optional. Constant indicating that the file is open for writing.
overwrite Optional. Boolean value that indicates whether it is alright to overwrite and existing file. If omitted, existing files are not overwritten.
unicode Optional. Boolean value that indicates whether the file is created as a Unicode or ASCII file. If omitted, an ASCII file is assumed.

Remarks


© 1996 by Microsoft Corporation.