Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - buffered file open table http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Buffered file open table
------------------------------------------------------------------------------
 Open modes

------------------------------------------------------------------------------
 Open mode     Macro        Usage
------------------------------------------------------------------------------
 Read only     F_READ       The file is opened for reading only, the read
                            pointer is positioned at the beginning of the
                            file.

 Create        F_CREATE     If the file does not exist, it will be created.
                            If the file exists, it will be truncated before
                            any writes.

 Appending     F_APPEND     The file is opened and the write
                            pointer is positioned at the end of
                            the file.
------------------------------------------------------------------------------


 Access modes

------------------------------------------------------------------------------
 File format   Macro        Usage
------------------------------------------------------------------------------
 ASCII         F_TEXT       Each line of the file ends with the CR/LF
                            combination which will be filtered out by read
                            operations.

 Binary        F_BINARY     All characters will be read, including CR/LF.
------------------------------------------------------------------------------


 Function use range

 Depending on the current access mode, the following functions may be used
 with an open file stream:

------------------------------------------------------------------------------
 Function         Text mode     Binary mode
------------------------------------------------------------------------------
 faccess()        yes           yes
 fclose()         yes           yes
 feof()           yes           yes
 fflush()         yes           yes
 fgetc()          yes           yes
 fgetln()         yes           no
 fhandle()        yes           yes
 fput()           yes           no
 fputc()          yes           yes
 fputln()         yes           no
 frewind()        yes           yes
 fwriteln()       yes           no
 fsetvbuf()       yes           yes
------------------------------------------------------------------------------

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