I am reading about file handling and I did find explanations like "To be precise, using this structure can, as a whole, be troublesome, so we usually use a pointer to it." I would like to know why do we always use FILE*
and what is so troublesome ?
The only explanation I could find is that functions like fopen
returns a pointer to FILE*
so therefore we need to use as it is. Is there any situation where you would use a FILE
automatic variable over pointer to it?