Storages & Files EOS
EOS - read only property

Indicates it the end of the stream is reached. 

Syntax:

variable = object.EOS

True value means the current position is at or after the end of stream.

Examples:

Set sf = Server.CreateObject("newObjects.utilctls.SFMain")
Set file = sf.OpenFile("C:\MyFile.txt")
' Open exiting text file
' Read it line by line
While Not file.EOS
  Response.Write file.ReadText(-3) & "<BR>"
Wend

Remarks:

Pay attention to the methods that change the stream position or the SFRecord specifics (if used with the stream). The stream position is changed by: ReadText, WriteText, WriteBin, ReadBin, Pos, Seek.

Applies to: SFStream object

newObjects Copyright 2001-2006 newObjects [ ]