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

 DESCRIPTION

 C_FILETOP() moves the specified file handle to the top of the file.

 SYNTAX

 C_FILETOP(handle)

 PARAMETERS

 handle (N) is the file handle number assigned when the file was opened.

 RETURNS

 C_FILETOP() returns the current position in the file after moving
 the file pointer or a negative one (-1) if an error occurred.

 EXAMPLES

 f1 = fopen("test.txt",2)   && open for read/write
 ...

 c_fileend(f1)              && move to end of file
 ...

 fwrite(f1,"Append to end of file")
 ...

 c_filetop(f1)              && go back to top of file


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

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