Close 方法關(guān)閉打開(kāi)的 TextStream 文件。 object.Close
object 應(yīng)為 TextStream 對(duì)象的名稱。 說(shuō)明下面例子舉例說(shuō)明如何使用 Close 方法關(guān)閉打開(kāi)的 TextStream 文件: Sub CreateAFile
Dim fso, MyFile
Set fso =CreateObject("Scripting.FileSystemObject")
Set MyFile =fso.CreateTextFile("c:\testfile.txt", True)
MyFile.WriteLine(" 這是一個(gè)測(cè)試。")
MyFile.Close End Sub
請(qǐng)參閱Read 方法 | ReadAll 方法 | ReadLine 方法 | Skip 方法 | SkipLine 方法 | Write 方法 | WriteLine 方法 | WriteBlankLines 方法 應(yīng)用于:TextStream 對(duì)象 返回首頁(yè) |