How to text a file from downloads

Give curl a specific file name to save the download in with -o [filename] (with for example, you download a HTML page or other text data that uses a certain