[Linaro-uefi] [PATCH RFC 06/19] Refactor read_file() so it can be shared.