Use internal fs functions instead of public methods for readFile, writeFile.