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)
%>
Output:
The last character of the first line in the text file is: !
❮ 완전한 TextStream 객체 참조