Make use of SplFileObject class instead of function calls
Changed required PHP version
Added missing curly brackets
Merge pull request #14 from adosaiguas/master

Make use of SplFileObject class instead of function calls