Two things, fread reads 1 byte when its suppose to read 4, but get no errors nor has it reached end of file, and the other thing is that it jumps to 245, can anyone explain this?

getpos(f,&pos);
Debug << pos <<endl;// says 0

size_t s;Debug<<fread(&s,sizeof(size_t),1,f)<<endl;_node.resize(s);//says 1

Debug<<ferror(f)<<endl;//says 0

Debug<<feof(f)<<endl;//says 0

fgetpos(f,&pos);

Debug << pos <<endl;//says 245

fread(&s,sizeof(size_t),1,f);_edge.resize(s);