[PATCH v2 24/31] bootmeth: Update the read_file() method to include a type