Propiedad AtEndOfLine de ASP
❮ Referencia completa de objetos TextStream
La propiedad AtEndOfLine devuelve un valor booleano. True indica que el puntero del archivo se coloca inmediatamente antes del marcador de fin de línea en un archivo TextStream. De lo contrario, devuelve False.
Nota: esta propiedad solo funcionará en un objeto TextStream que esté abierto para lectura.
Sintaxis
TextStreamObject.AtEndOfLine
Ejemplo
<%
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: !
❮ Referencia completa de objetos TextStream