08.10.2012, 22:32
There is currently no function to specify which lines to search by, but this may work.
Very impractical though.
PHP код:
stock readfile()
{
new
File:file = fopen("file.txt", io_read),
string[128],
foundline = 0;
while(fread(file, string, sizeof(string)) {
if((strfind(string, "#4") != -1) && !foundline) {
foundline = 1;
continue;
}
if(foundline) {
printf("%s", string);
}
}
return 1;
}