I guess you want r+t .
Click here for more info.
On a side note, fprintf does formatting, so my best bet is this:
Code:
new steamid[35] // EKS says so: <a href="http://forums.alliedmods.net/showthread.php?t=3420" target="_blank" rel="nofollow noopener">http://forums.alliedmods.net/showthread.php?t=3420</a>
get_user_authid(id, steamid,34)
new data[64], authid[32], len
new fid = fopen(settingsfile, "r+t")
while(!feof(fid)) {
fgets(fid, data,63)
len = strlen(data) * -1 // why *-1 if I may ask? :o
strbreak(data, authid,31, data,1)
if(!equal(steamid,authid)) continue
fseek(fid, len,SEEK_CUR) //goto start of the line
break
}
fprintf(fid, "%s %s", steamid, bla)
fclose(fid)
Untested, but you get the idea.
__________________