File.EOF

Top  Previous  Next

 

Syntax

function File.EOF(F: pointer): boolean

 

Alternative Names

ibec_fs_Eof

 

Description

Returns TRUE if file-stream is at 'end of file', FALSE otherwise.

 

See also

File.Open
File.Close
File.Seek

 

Example

execute udsblock returns (valueout varchar(1024))

as

begin

  /* open text file with UTF8 encoding preamble */ 

  fs = File.Open('c:\data\utf8text.txt', __fmOpenReadWrite + __fmShareDenyWrite);

  try

    /* read all available lines */

    while not File.EOF(fs)

    do begin

     valueout = File.ReadLn(fs);

         suspend; 

       end

  finally

    File.Close(fs);

  end

end