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.
Code:
int tpos =12,t = 0;
char ch[4];
FILE* fp = fopen("blablawhatever","rb");
if(fp != NULL)
{
fseek(fp,tpos,SEEK_SET);
fread(ch,4,1,fp); // this is where the File Position jumpes
fread(&t,4,1,fp);
}