If I just wanted to *display* a textfile, I would use an iframe as a box - but the backgound will always be white...
If I wanted to see the *content* with a certain font or background color, i just would not let the program write a text file but a simple html file...
If I wanted to *put the content* of the textfile into the html, I would use the "object" tag together with a standard ActiveX plugin to really *read* the text file.
(The plugin comes with IE, and it's of course only working with IE...)
Example....
lyrics.txt:
A|B|C|D|E
Blah|Tralala|Oh Girl|I love you|Huhu
html:
<html>
<head><title>Test</title></head>
<body>
<object id="Lyrics" classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<param name="DataURL" value="lyrics.txt">
<param name="UseHeader" value="true">
<param name="FieldDelim" value="|">
</object>
<table id="MyTab" datasrc="#Lyrics" datapagesize="1" width="100%" border="1"><tr>
<td><span datafld="A"></span></td>
<td><span datafld="B"></span></td>
<td><span datafld="C"></span></td>
<td><span datafld="D"></span></td>
<td><span datafld="E"></span></td>
</tr></table>
</body>
</html>