S
Senger
Hello!
I have to take a file and exclude the inicial part (88 positions) to a
buffer.
I try with this code, but not functioning:
fp = fopen(file,"rb");
fseek(fp,0,SEEK_END);
size = ftell(fp);
data = malloc(size);
fseek(fp,88,SEEK_SET);
fread(data,size,1,fp);
fclose(fp);
Where data containg the file without 88 initial positions....
Thanks for help!!
I have to take a file and exclude the inicial part (88 positions) to a
buffer.
I try with this code, but not functioning:
fp = fopen(file,"rb");
fseek(fp,0,SEEK_END);
size = ftell(fp);
data = malloc(size);
fseek(fp,88,SEEK_SET);
fread(data,size,1,fp);
fclose(fp);
Where data containg the file without 88 initial positions....
Thanks for help!!