Wednesday, November 30, 2016

C File Access Functions

File Access Functions:
fopen FILE * fopen( const char * filename, const char * mode );
fopen_s(C11) errno_t fopen_s(FILE * restrict *restrict streamptr, const char * restrict filename, const char * restrict mode);
freopen FILE * freopen( const char * filename, const char * mode, FILE * stream );
freopen_s(C11) errno_t freopen_s(FILE * restrict *restrict newstreamptr, const char * restrict filename, const char * restrict mode,FILE * restrict stream);
fclose int fclose( FILE * stream );
fflush int fflush( FILE * stream );
setbuf void setbuf( FILE * stream, char *buffer );
setvbuf int setvbuf( FILE * stream, char * buffer, int mode, size_t size );

stdio.h
Operations on files Function
File Access Functions
Formatted input/output Functions
Character input/output Functions
Direct input/output Functions
File positioning Functions
Error-handling Functions


Related topics:
Library Functions in C   |   Standard Library in C   |   Header Files in C   |   Functions in C   |   Keywords in C   |   Data Types in C   |   Pointers in C

List of topics: C Programming

No comments:

Post a Comment