VBS教程:屬性-AtEndOfLine 屬性
AtEndOfLine 屬性
TextStream 文件中,如果文件指針指向行末標(biāo)記,就返回 True;否則如果不是只讀則返回 False。
object.AtEndOfLine
object 應(yīng)為 TextStream 對象的名稱。
說明
AtEndOfLine 屬性僅應(yīng)用于以讀方式打開的 TextStream 文件,否則會出現(xiàn)錯誤。
下列代碼舉例說明如何使用 AtEndOfLine 屬性:
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.AtEndOfLine <> True retstring = theFile.Read(1) Loop theFile.Close ReadEntireFile = retstringEnd Function
相關(guān)文章
查詢電腦開關(guān)機(jī)時(shí)間的vbs代碼
這篇文章主要介紹了查詢電腦開關(guān)機(jī)時(shí)間的vbs代碼,需要的朋友可以參考下2016-12-12vbs 獲取當(dāng)前目錄的實(shí)現(xiàn)代碼
獲取當(dāng)前正執(zhí)行的VBS的路徑,通過Scripting.FileSystemObject組件實(shí)現(xiàn)2013-09-09VBS 腳本不能運(yùn)行 提示W(wǎng)indows無法訪問指定設(shè)備路徑或文件
Windows無法訪問指定設(shè)備路徑或文件,您可能沒有合適的權(quán)限訪問這個(gè)項(xiàng)目.2009-10-10關(guān)于vbs 生成靜態(tài)頁面過程中出現(xiàn)的問題
訪問某個(gè)aspx頁面,然后把服務(wù)器返回的頁面以filestream 的形式保存為html格式,接下來將介紹實(shí)現(xiàn)代碼2012-12-12VBS教程:函數(shù)-SetLocale 函數(shù)
VBS教程:函數(shù)-SetLocale 函數(shù)...2006-11-11