|
From: airam <ai...@so...> - 2003-02-21 22:16:39
|
Hi!!!!!!
i want to read a file every 4bytes
and after printf
this is the code but doesn't work!!
#include <stdio.h>
int main()
{
unsigned int i,j,k;
FILE *f;
f=3Dfopen("filename","r");
if (!f)
return 1;
fseek(f,0,SEEK_SET);
for (i=3D0;i<sizeof file; i++)
{
fread(&j,sizeof(unsigned int),2,f);
fseek(f,sizeof(unsigned int),SEEK_CUR);
}
fclose(f);
printf("\n");
}
|