Hàm fwrite ghi nội dung xuống file binary
size_t fwrite( const void *buffer, size_t size, size_t count, FILE *stream ); Parameter: buffer: con trỏ trỏ tới data cần ghi xuống file. size: kích […]
size_t fwrite( const void *buffer, size_t size, size_t count, FILE *stream ); Parameter: buffer: con trỏ trỏ tới data cần ghi xuống file. size: kích […]
char *fgets(char *str, int n, FILE *stream); Parameter: str: con trỏ trỏ tới string (đã được khởi tạo hoặc cấp phát bộ nhớ để lưu […]
int fputs(const char *str, FILE *stream); Parameter: str: con trỏ tới string stream: con trỏ file Remark: Hàm fputs( ) ghi string (kiểu char*) xuống […]
int fgetc(FILE *stream); Parameter: stream: con trỏ file Remark: Hàm fgetc( ) đọc 1 kí tự từ file. Hàm fgetc( ) trả về mã ASCII […]
int fputc(int c, FILE *stream); Parameter: C: mã ASCII của kí tự muốn ghi xuống file stream: con trỏ file Remark: Hàm fputc( ) ghi […]
int fscanf(FILE *stream,const char *format [, argument ]…); Paramter: stream: con trỏ file format: giống hàm printf( ) và scanf( ). Remark: Hàm fscanf( ) […]
int fprintf(FILE *stream, const char *format [,argument ]…) Parameter: stream: con trỏ FILE format: tương tự như hàm printf( ). Remark: Hàm fprintf() dùng để […]
int fclose(FILE *stream); Parameter: stream: con trỏ FILE Remark: Hàm fclose( ) dùng để đóng file sau khi hoàn thành các thao tác đọc/ghi. Hàm […]
FILE *fopen( const char *filename,const char *mode); Parameter: filename: tên file (bao gồm cả đường dẫn tới file) mode: các chế độ open khác nhau […]
int fflush( FILE *stream ); Parameter: stream: con trỏ file Remark: Hàm fflush( ) “làm sạch” stream( stdin: đầu vào, stdout: đầu vào). Hàm fflush( […]
Copyright © 2015-2024 | WordPress Theme by MH Themes