Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>b_eof()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_eof()


Syntax:     b_eof(<expN>)

Purpose:    Test for end of file

Arguments:  <expN> is the file handle returned by b_open()

Returns:    A Logical Value

Library:    MICROSYS.LIB

----------------------------------- Example ----------------------------------


   nHandle := b_open("myfile.txt")

   if( nHandle != -1 )
       while( !b_eof(nHandle) )
           qout( b_readline(nHandle) )
       endd
   else
       qout("Unable to open myfile.txt!")
   endi

   b_close(nHandle)
   retu(.t.)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson