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_open()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_open()


Syntax:     b_open(<expC>)

Purpose:    Open a text file for reading and writing

Arguments:  <expC> is the filename

Returns:    A numeric value

Notes:      b_open() opens files in TEXT mode

Library:    MICROSYS.LIB

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


   if( (nHandle := b_open("myfile.txt")) == -1 )
       qout("Unable to open myfile.txt!")
       retu(.f.)
   endi

   while( !b_eof(nHandle) )
       qout( b_readline(nHandle) )
   endd

   b_close(nHandle)

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