FILE is a data structure which it gets information about file structure in the os. So if you want to work with a file you have to define a variable pointer with that.
FILE defination:
typedef struct _iobuf
{
void* _Placeholder;
} FILE;
More Related Contents:
- Which access specifiers will not affect a friend function?
- Does the stream operator exist for class member functions?
- Weird behavior with OOP and string pointers
- Why should I prefer to use member initialization lists?
- Function pointer to member function
- When should you use a class vs a struct in C++?
- Is there a performance difference between i++ and ++i in C++?
- Thou shalt not inherit from std::vector
- Why should the “PIMPL” idiom be used? [duplicate]
- How to call a parent class function from derived class function?
- Is the PIMPL idiom really used in practice?
- What is the difference between private and protected members of C++ classes?
- Why are unnamed namespaces used and what are their benefits?
- What are the differences between struct and class in C++?
- Why should I avoid multiple inheritance in C++?
- Vectors and polymorphism in C++
- Why can’t a derived class call protected member function in this code?
- Why should I use the “using” keyword to access my base class method?
- Declaring multiple object pointers on one line causes compiler error
- Implementing multiple interfaces in c++
- Will an ’empty’ constructor or destructor do the same thing as the generated one?
- Diamond inheritance (C++)
- overloading base class method in derived class
- Best method for storing this pointer for use in WndProc
- Should I use public or private variables?
- How to initialize the reference member variable of a class?
- Making a vector of instances of different subclasses
- How does the C++ compiler know which implementation of a virtual function to call?
- What is the purpose of forward declaration?
- Should objects delete themselves in C++?