off by one, empty file is not one line
forgot to update alternative solution
Merge pull request #20 from ralphtheninja/master

off by one, empty file is not one line