Plain text is plain text. You can’t do anything with it in a browser except display it as and where it is.
I’m not completely getting what you are trying to do yet. Do you want to click the URL in the text file to load a new page or is the new page supposed to open as soon as the text file is loaded in the browser?
Donít click this link!