What exactly is the FILE structure that we use for fopen? How does it work exactly?
According to cplusplus.com:
Object containing information to control a stream
FILEis an] object type that identifies a stream and contains the information needed to control it, including a pointer to its buffer, its position indicator and all its state indicators.
FILEobjects are usually created by a call to either
tmpfile, which both return a pointer to one of these objects.
The content of a
FILEobject is not meant to be accessed from outside the functions of the