I believe there are no built-in tools in allowing you to create a .txt file on your iPad, so I recommend you some their-party utilities to finish such work: Simplenote, IA Writer, 1Writer, and Drafts.
Good luck~
For reasons I will not list, I have the need to create a .txt file, however, I am using an iPad (7th generation) on iOS 15 and because of that, I haven't the foggiest idea how I am supposed to create a .txt file. If you say "Well, you could try the document scanner" I won't use it, why, simple answer, I don't know how it works and if I did, I doubt it would create a .txt file. I don't have a Mac or computer or anything like that, so any answer involving a computer, I will take with a grain of salt. If it revolves around the iPad though, I will be happy to hear your potential solution.
I believe there are no built-in tools in allowing you to create a .txt file on your iPad, so I recommend you some their-party utilities to finish such work: Simplenote, IA Writer, 1Writer, and Drafts.
Good luck~

Looking to download OS X Mavericks DMG, ISO, or full installer? Here are the direct download links to Mavericks and the steps to create an OS X Mavericks bootable USB.

Seeing avconferenced in Activity Monitor? Learn what this Mac process is, why it causes high CPU or memory usage, and how to fix it safely.