
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>b_seek()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_seek()
Syntax: b_seek(<expN1>,<expN2>,<expN3>)
Purpose: Move file pointer n number of bytes
Arguments: <expN1> is the file handle returned by b_open()
<expN2> is the offset or number of bytes to move
<expN3> is the reference point of the seek
Returns: The offset of the pointers new position, specified in bytes
from the beginning of the file. On error a -1 is returned.
Notes: Reference Point:
0 Beginning of file
1 Current pointer position
3 End of file
Library: MICROSYS.LIB
----------------------------------- Example ----------------------------------
nHandle1 := b_open("myfile.txt")
if( nHandle1 == -1 )
qout("Unable to open myfile.txt!")
retu(.f.)
endi
b_seek(nHandle1,20,0)
qout( b_char(nHandle1) )
b_close(nHandle1)
retu(.t.)
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson