getCurRef: Use builtin fileread() instead of custom readFile()