Renaming to fileToText
textToFile function