Save the text to a file