C++中 FILE*fp 是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/06/22 00:15:03

FILE是在C标准库中(stdio.h)中定义的一个结构体,通常用指针的方式保存在内存中,其内容描述了一个文件,或者说”流“更恰当。


它的具体内容在不同的操作系统或标准库的实现中各不相同,如在TC2.0中(定义参考自http://www.cnblogs.com/haore147/p/3648395.html,没有考证过)

typedef struct  {
        short           level;          /* fill/empty level of buffer */
        unsigned        flags;          /* File status flags    */
        char            fd;          &