摘要:
fflushint fflush(FILE* stream);用于清空文件缓冲区,如果文件是以写的方式打开 的,则把缓冲区内容写入文件。 eg:1.#include #include int main(){ ... 阅读全文
摘要:
1.删除文件或目录int remove(char * filename);【参数】filename为要删除的文件名,可以为一目录。如果参数filename 为一文件,则调用unlink()处理;若参数filena... 阅读全文
摘要:
C语言获取文件状态stat()#include #include int stat(const char *file_name, struct stat *buf); 1.参数struct stat{ dev... 阅读全文
摘要:
一.fseek()int fseek(FILE * stream, long offset, int whence);1.参数stream 为已打开的文件指针。2.参数offset 是偏移量,该参数表示要从起始点... 阅读全文
摘要:
有很多人会问,学会C语言能干啥?,就只能控制台敲个数学题,做个界面都没有的贪吃蛇么?刚开始的我,也是这样想的,但慢慢深入C语言后,我才领略到C的强大,C的万能。小到游戏破解,加解密算法,大到设备驱动,系统内核..... 阅读全文