Ask HN: iPhone cannot edit a .txt file?
Using any macOS device, create a .txt file using the TextEdit app. Save it to iCloud files. It will sync to your iPhone immediately. You can view but not edit the file.
This, in a closed/controlled ecosytem, in 2021.