08.08.2014, 16:15
pawn Код:
new File:fh = fopen("text.txt",io_read);
new Found;
while(fread(fh, str))
if(strfind(str,"2",true) != -1)
{
Found = 1;
break; // stops the loop
}
fclose(fh);
return Found; // returns 0 if not found or 1 if match