ASPAtEndOfLineプロパティ_
❮完全なTextStreamオブジェクトリファレンス
AtEndOfLineプロパティはブール値を返します。Trueは、ファイルポインタがTextStreamファイルの行末マーカーの直前に配置されていることを示します。それ以外の場合は、Falseを返します。
注: このプロパティは、読み取り用に開いているTextStreamオブジェクトでのみ機能します。
構文
TextStreamObject.AtEndOfLine
例
<%
dim fs,f,t,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt")
f.write("Hello World!")
f.close
set t=fs.OpenTextFile("c:\test.txt",1,false)
do while t.AtEndOfLine<>true
x=t.Read(1)
loop
t.close
Response.Write("The last character is: " & x)
%>
Output:
The last character of the first line in the text file is: !
❮完全なTextStreamオブジェクトリファレンス