12.04.2016, 16:49
If you want to stick with fread, just use it like this:
No need to save the return value.
If you want to use fseek, put that before the fread, however the 28 Godey put in has to be calculated from the players' name length PLUS the number of returns (1 if you use "\n", 2 if you use "\r\n").
Code:
fread(cfg, strinsg, sizeof(strinsg));
If you want to use fseek, put that before the fread, however the 28 Godey put in has to be calculated from the players' name length PLUS the number of returns (1 if you use "\n", 2 if you use "\r\n").