?
This document uses PHP Chinese website manual Release
JScript? | 語言參考 |
方便對文件的順序訪問。
TextStream.{property??| method( )}
property 和 method 參數(shù)可以是與 TextStream 對象相連的任何屬性和方法。請注意在實(shí)際使用時(shí),TextStream 被從 FileSystemObject 返回的代表 TextStream 對象的變量占位符代替。
在下面的代碼中,a 是由 FileSystemObject 的 CreateTextFile 方法返回的 TextStream 對象:
var fso = new ActiveXObject("Scripting.FileSystemObject"); var a = fso.CreateTextFile("c:\\testfile.txt", true); a.WriteLine("
這是一個(gè)測試。");
a.Close();
WriteLine 和 Close 是 TextStream 對象的兩個(gè)方法。
Close 方法 | Read 方法 | ReadAll 方法 | ReadLine 方法 | Skip 方法 | SkipLine 方法 | Write 方法 | WriteBlankLines 方法 | WriteLine 方法
AtEndOfLine 屬性 | AtEndOfStream 屬性 | Column 屬性 | Line 屬性
Dictionary 對象 | FileSystemObject 對象