View Full Version : Getting Notepad content into HTML

05-17-2005, 08:22 PM
How do I get the content written inside a .txt file to be displayed inside an html file?

05-17-2005, 08:37 PM
Not sure how you want to approach this but you basically have 2 easy solutions. There's more advanced server side things you can do, but I'm not a programmer :)

1. Copy & Paste into the html document, just make sure it's inside your <body> tags.
2. Use a server side include. Ask you host which is supported. In PHP we do it like this (NOTE - this means the server needs to parse the page as PHP, and it thus needs a .php extension, not .html extension): <?php include("file.txt"); ?>