Put in functions to read entire file into memory