here it is, the FILE stream implementation in C :
typedef struct
{
short level ;
short token ;
short bsize ;
char fd ;
unsigned flags ;
unsigned char hold ;
unsigned char *buffer ;
unsigned char * curp ;
unsigned istemp;
}FILE ;
I really don't know what all of these are for, and I wonder if the buffer contains the full file or not. If not, how does mister C know where to find the rest of the file ?