paste text from the clipborad into a file

paste text from the clipborad into a file

I need to paste text from the clipborad into a file.
Is that possible and how?
Regards
I. Lesher