yes salem your right but if you look at the last code i posted ,my fread is on 13 and still no failure thats my question?
Type: Posts; User: sigur47
yes salem your right but if you look at the last code i posted ,my fread is on 13 and still no failure thats my question?
Hi i have just tested my freads .Basically i have a file that contains 12 structures and after the 12th structure fread should return a 0 but mine returns a 1
i am honestly looking through my code but cant find what am doing wrong.How does my file increase in size when am using fwrite which overwrites the content in the file
i have an infinte loop that i cant find the cause.The terminating condition should be end of file .
FILE *f;
f=fopen("office.out","r+");
position=ftell(f);
while(!feof(f))
{
...