in reply to Viewing .dat files

Gentle monk

If you write your file with a .txt extension—rather than a .dat extension—then the browser will render it as text. No need to fool around with another program interpreting and reformatting it.

Just link to it in the normal way:

Here's my <a href="frob.txt"> data</a>!
throop