File I/O is screwed up bad?(or i am one)
ok im one to assume the problem is me but this is ridiculous or maybe im code blind or something? anyway why in the HELL does the file pointer jump 1000+ bytes into the file after a single 4 byte read?
im completly blind or this is some ****??!?
this is the chunk of code that does it yeah i have a proper file name and it opens fine.
int tpos =12,t = 0;
FILE* fp = fopen("blablawhatever","rb");
if(fp != NULL)
fread(ch,4,1,fp); // this is where the File Position jumpes