I need to read and modify a binary file, I am using this code:
FILE *fp; t_data dat; fp=fopen("file.bin","r+b");
fread(&dat,sizeof(t_data),1,fp);
while(!feof(fp))
{
if(dat.aaaa==2018)
{
int pos = ftell(fp)-sizeof(t_data);...
asked by
11.10.2018 / 16:12