DataStorage now have "writeToFile" function