move osReadWholeFile to common.h