I just looked at stdio.h where I could find the FILE structure definition:
typedef struct {
int level;
unsigned flags;
char fd;
unsigned char hold;
int bsize;
unsigned char *buffer;
unsigned char *curp;
unsigned istemp;
short token;
} FILE;
Now I wonder if I can create myself (without using fopen) a valid FILE pointer to a thread, which I could use then in subsequent calls to fread or fwrite? this is a more theoretical question, so please don't be surprised why I want to know this;)
Also, does stdio not properly provide a routine to delete a file? In this case, I need OS calls, right?
thanks
James01
source
share