欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片



AtEndOfStream 屬性

如果文件指針位于 TextStream 文件末,則返回 True;否則如果不為只讀則返回 False。

object.AtEndOfStream

object 應(yīng)為 TextStream 對象的名稱。

說明

AtEndOfStream 屬性僅應(yīng)用于以只讀方式打開的 TextStream 文件,否則會出現(xiàn)錯(cuò)誤。

下列代碼舉例說明如何使用 AtEndOfStream 屬性:

Function ReadEntireFile(filespec)
Const ForReading =1
Dim fso, theFile, retstring
Set fso =CreateObject("Scripting.FileSystemObject")
Set theFile =fso.OpenTextFile(filespec, ForReading, False)
Do While theFile.AtEndOfStream <> True
retstring =theFile.ReadLine
Loop
theFile.Close
ReadEntireFile =retstring
End Function

請參閱

AtEndOfLine 屬性 | Column 屬性 | Line 屬性

應(yīng)用于:TextStream 對象

返回首頁