added loadTextFileFromRaw method