(" file()'s problem with UTF-16" is wrong. This is updated. The former may miss the last line of the ...
php.net