Perchè non usi, più semplicemente, file() ?

Codice PHP:
$array_errorFile=file($filename);