Discussion Locked

Embed ASCII file into an HTML page

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am not a web developer, but I've been asked to take a current ASCII report and have it display in HTML format, so that it can be viewed using a browser - like IE.

Is there some easy way that this could be done, without having to change my program to incorporate the HTML commands for every line written to the ASCII report file?

Thanks in advance for any help provided.....

7 replies

by mike (from canada)

open the ascii file and add a blank line at the top of the document and in that blank line, type in
 and at the very last line of the document, add 
and then save it.

by tjc

Actually you don't need to do anything. If you save the file to your server with a TXT extension and then have a link to it the browser will know that it is a ASCII file and display it as such, remember though spacing and formatting will not happen,so it will not look pretty.

by awimsatt

another thing you can do is open the file using the Iframe tag. In this way you can embed the ASCII file into an html file and you don't have to worry about appending tags to the ascii file. use the iframe tag in the following way:

This discussion is closed to new replies.