fopen、open及CreatFile()的区别
open是UNIX系统调用函数(包括LINUX等),返回的是文件描述符(File Descriptor),它是文件在文件描述符表里的索引。
fopen是ANSIC标准中的C语言库函数,在不同的系统中应该调用不同的内核api(UNIX/Linux中是open,windows中是CreatFile)。返回的是一个指向文件结构的指针。
Fread、Fwrite等同理。
参考:
https://blog.csdn.net/weixin_49001854/article/details/109560675
https://blog.csdn.net/chinesekobe/article/details/108685727?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-1.pc_relevant_paycolumn_v3&spm=1001.2101.3001.4242.2&utm_relevant_index=4