Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_filepos() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_FILEPOS()

 DESCRIPTION

 C_FILEPOS() returns the current file pointer position in a
 specified file.

 NOTES

 This function is an extension of Clipper's low-level file
 functions.  Clipper's function FOPEN() can be used to open the DOS
 file and obtain the file handle needed for this function.

 SYNTAX

 C_FILEPOS(handle)

 PARAMETERS

 handle (N) is the file handle to return the position.

 RETURNS

 C_FILEPOS() returns the current file pointer position relative to
 the top of the file.

 EXAMPLES

 f1 = fopen("FILE.TXT")        && Open the file
 ? c_filepos(f1) -->  0        && Positioned at top-of-file

 fseek(f1,100,0)               && Seek 100 bytes
 ? c_filepos(f1) -->  100      && Now, positioned at 100


See Also: C_FILETOP() C_FILEEND() C_FILEEOF() C_FILEREAD()

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