#ZegnatI am a huge advocate for using the SplFileObject class instead of fopen() for files. It is a much more specific abstraction of files, can easily be typed checked against, and is even easier to use in some cases. (You can simply foreach loop on it to get all the lines of text!)