当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP AtEndOfLine 属性
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.
注意:这个属性仅对处于打开阅读状态中的文本对象有效。
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) %> Output: The last character of the first line in the text file is: ! |