网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: ASP :: ASP AtEndOfLine 属性

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

ASP AtEndOfLine 属性


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1176 :: ::

The AtEndOfLine property returns a Boolean value. True indicates that the file pointer is positioned immediately before the end-of-line marker in a TextStream file. Otherwise, it returns False.
ASP AtEndOfLine 属性返回了一个逻辑值。True逻辑真表示文件指示器(file pointer)已经直接定位在文本行尾标志(end-of-line marker)之前了;否则的话,将显示False逻辑假。

Note: This property will only work on a TextStream object that are open for reading.
注意:这个属性仅对处于打开阅读状态中的文本对象有效。

Syntax
语法

TextStreamObject.AtEndOfLine

Example
举例

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


评论 (0) All