Removed thed use of deprecated "readFileToString"