Removed the deprecated usage of readFileToString & writeStringToFile