ASP AtEndOfLinePropiedad
Manual de referencia completo del objeto TextStream
La propiedad AtEndOfLine devuelve un valor booleano. True indica que el puntero de archivo está justo antes del marcador de fin de línea en el archivo TextStream; de lo contrario, devuelve False.
Nota:Esta propiedad solo funciona con objetos TextStream abiertos en modo de solo 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)
%>
Salida:
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)
%>
Salida:
The last character of the first line in the text file is: !
Manual de referencia completo del objeto TextStream Otras extensiones