File

Le numerose funzioni per i file possono essere raggruppate per scopo

Leggere

fread() size_t fread(void * ptr, size_t size, size_t count, FILE * stream);
fscanf() int fscanf(FILE * stream, const char * format, …);
fgetc() int fgetc(FILE * stream);
fgets() char * fgets(char * str, int num, FILE * stream);

Scrivere

fwrite size_t fwrite(const void * ptr, size_t size, size_t count, FILE * stream);
fprintf int fprintf(FILE *stream, const char * format, … );
fputc int fputc(int character, FILE * stream);
fputs int fputs(const char * str, FILE * stream);

Ancora…

fopen() FILE * fopen(const char * filename, const char * mode);
fseek() int fseek(FILE * stream, long int offset, int origin);
ftell() long int ftell(FILE * stream);
fflush() int fflush(FILE * stream);
fclose() int fclose(FILE * stream);
Notice: This work is licensed under a BY-NC-SA. Permalink: File

Comments are closed.