added utility method to read entire files