VBS教程:方法-Close 方法
摘要:Close方法关闭打开的TextStream文件。object.Closeobject应为TextStream对象的名称。说明下面例子举例说...
Close 方法
关闭打开的
TextStream 文件。
object.
Close
object 应为 TextStream 对象的名称。
说明
下面例子举例说明如何使用
Close 方法关闭打开的
TextStream 文件:
Sub CreateAFile Dim fso, MyFile Set fso = CreateObject("Scripting.FileSystemObject") Set MyFile = fso.CreateTextFile("c:testfile.txt", True) MyFile.WriteLine("这是一个测试。") MyFile.CloseEnd Sub
【VBS教程:方法-Close 方法】相关文章:
★ VBS教程:方法-GetAbsolutePathName 方法
★ VBS教程:方法-GetSpecialFolder 方法
上一篇:
VBS教程:方法-Copy 方法
下一篇:
VBS教程:函数-Split 函数