in reply to Viewing .dat files
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:
throopHere's my <a href="frob.txt"> data</a>!
|
|---|