Get saveFile function