Made ReadFile more stable/less panicky

:-)
Merge pull request #1 from elimisteve/patch-1

Made ReadFile more stable/less panicky