Well that is not a solution, when I click a text file, unbelievably my Winrar app opens and opens the text file in their overview menu screen. That is because I as end user of this OS can not associate a text file to an app I prefer. That is Apple’s choice and I do not understand what are the benefits for me as a user. The other solution you gave is opening the context menu after long pressing the file name. I can then use the Quick View option, but that only give me a non editable version of the txt file and that is only a text file with the txt extension. When you change the extension for instance to *.aaa I get a blanc window in Quick View. Al lot of text files have different extensions, for instance readme files or installation files. Those can not be opened normally on an IPad/Iphone. And I think that is a strange choice, because this function is available for decades on every OS.
You can download a sample text file here; https://filesamples.com/formats/txt?utm_content=cmp-true