Button to create txt file

I keep meaning to make this a FAQ since it comes up a lot. I realised there was already a related post in the Buttons forum, so I fleshed out the remaining details (in my reply to the post) and have linked it from the FAQs: