Minor refactoring; readRawTextFile => readResource