ASP AtEndOfLine లక్షణం

నిర్వచనం మరియు వినియోగం

AtEndOfLine లక్షణం ఒక బుల్ విలువను తిరిగి ఇస్తుంది. True అని ఉంటే ఫైల్ పంపిణీ కేంద్రం కుడి మూలంలో రేఖల ముగింపు ముందు ఉంటుంది, లేక అప్పుడు False ఉంటుంది.

ప్రత్యామ్నాయంగా:ఈ లక్షణం మాత్రమే రిడ్ మోడ్ లో తెక్స్ట్ స్ట్రీమ్ ఆబ్జెక్ట్ పై పని చేస్తుంది.

సంకేతాలు:

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: !