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~

Solutions to fix 'Error: -69877: Couldn't open device' in Terminal or 'Couldn't open device.: (-69877)' in Disk Utility when erasing Mac hard drive or external hard drive, USB, SD card, etc.

What is cloud storage? This post contains the definition of cloud storage, the use of cloud storage, the working principle of cloud storage, and more.