Forum Moderators: phranque

Message Too Old, No Replies

HTML/Javascript to access a txt file?

         

lickedone

2:40 pm on Jan 19, 2005 (gmt 0)



I have an HTML file that is only being accessed by users of this computer. There is also a text file on this computer that is changed daily. I am looking for a way for the HTML file to display the contents of the text file. I am not able to use any ASP/PHP/CGI. Is there a solution to this problem?

encyclo

2:52 pm on Jan 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], lickedone.

If you simply need to display the text file without any additional formatting, etc. then the easiest way is simply to use an iframe to reference the text file contents:

<iframe src="file.txt" width="150" height="150"></iframe>