If you have data from your clipboard and you need to put that into a new file, just enter cat > filename. The command will accept multiple inputs. Paste the contents into the terminal, or type any data. You can press Enter to create a new line. To end the stream, just hit CTRL+C (or CTRL+D).
cat > test
salut mon ami
^C
cat test
salut mon ami