ASP AtEndOfLineプロパティ
完全な 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)
%>
出力:
The last character of the first line in the text file is: !
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)
%>
出力:
The last character of the first line in the text file is: !
完全な TextStream オブジェクトリファレンス その他の拡張