12.04.2016, 14:03
If they are split by lines (\r\n or \n) it's way easier to use just fread.
fread will read one line only, so if you do fread twice after opening, the string will contain the second line.
It will return 1 if there is content, 0 if not.
fseek is possible too, but you need to know the exact position of the starting point of line 2 (which is in your case length of playername plus 1 or 2 (depending on if you used "\n" or "\r\n")).
fread will read one line only, so if you do fread twice after opening, the string will contain the second line.
It will return 1 if there is content, 0 if not.
fseek is possible too, but you need to know the exact position of the starting point of line 2 (which is in your case length of playername plus 1 or 2 (depending on if you used "\n" or "\r\n")).