Is the '^n' char equal for all operating systems in amxx?
File:
Code:
line1
line2
line3
line4
line5
Code:
Code:
new f = fopen(blc_file, "rt");
if(f)
{
new text[32];
server_print("** Reading file:");
while(!feof(f))
{
fgets(f, text, charsmax(text));
if(!text[0] || text[0] == ';' || text[0] == '^n')
continue;
server_print(text);
}
fclose(f);
}
Output:
Code:
** Reading file:
line1
line2
line3
line4
line5
I want to remove empty lines?!?!