There are at least a couple ways you can do this.
And which way you choose depends on whether you just want to display the contents of the file on the current page or whether you want to display the file on a new page.
If you just want to display it on a new page you can do it like wirehopper showed but slightly different:
But if you want to display the file on the current page then you will need to use AJAX.
This first example displays the file in a <div>:
You could also display the file in a <textarea> so you can edit it:
Or you could do the same thing with an anchor element.
For a new page:
In a <div> on the current page:
In a <textarea> on the current page: