当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP AtEndOfLine 属性

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP AtEndOfLine 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 372 ::
收藏到网摘: n/a

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

登陆 | 还没注册?