This, in a closed/controlled ecosytem, in 2021.
If so, that's not a closed ecosystem. It's a consumption-oriented default install.
I don't have my iphone with me, but do you have an iPhone app installed that supports text files?, there seem to be several on the app store. I'd find a free one to see if works and then "open with xx"