I am trying to use fseek to move to a certainer record in a file but I am getting the runtime error "Unhandled exception at 0x7c91b1fa in accounts.exe 0xC0000005: Access violation writing location 0xccccccdc." I opened the file using
and I am trying to seek usingCode:fp = fopen("accountsfile", "w+");
please help.Code:fseek(fp, hash*sizeof(AccountRecord), 0);