Microsoft® Visual Basic® Scripting Edition OpenTextFile Method |
| Language Reference | Home | Site Map |
|
See Also Applies to
The OpenTextFile method opens a specified filename and returns a TextStream object that can be used to read from or write to the file.
OpenTextFile(filename[, action][, create][, unicode])The OpenTextFile method has these parts:
Argument Description filename Required. String expression naming the file to open. action Optional. Constant indicating that the file is open for reading or appending. create Optional. Boolean value that indicates whether it is alright to create a new file if the specified filename does not exist. If omitted, a new file is not created. unicode Optional. Boolean value that indicates whether the file is read from or written to as a Unicode or ASCII file. If omitted, an ASCII file is assumed.