07.07.2016, 13:12
Why do all that when you can just do this?
Код:
new File: file = fopen("file.ini", io_read); if (!file) return 1; new str[128], bool: found; while (fread(file, str)) { if (strcmp(str, "entry =", false, LENGTH OF THE ENTRY + 2 (7 here) )) continue; found = true; } fclose(file); // Use the found variable to see if it exists or not.