Added readFile() method.

Added a method to read lines from files without throwing any exceptions.