extract readFile() function