
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>b_close()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_close()
Syntax: b_close(<expN>)
Purpose: Close a text file previously opened with b_open()
Arguments: <expN> is the file handle returned by b_open()
Returns: A Logical Value
Caution: Do Not use fclose() on a file opened with b_open()
b_open() uses open(<filename>,O_TEXT | O_RDWR)
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