Results 1 to 4 of 4

Thread: read text file and display webpage

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    read text file and display webpage

    Hi,

    what is the easiest way to read text from a text file and display it on a webpage? Can't do it with ASP though coz don't think our server can run it.

    We have got a cgi-bin though.

    Thanks for any help

  2. #2
    Addicted Member
    Join Date
    Jul 2002
    Location
    Brussels, Belgium
    Posts
    139
    Do you want to display the whole text file.
    Then your browser can display it. e.g. in an IFRAME

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    i know!

    i realised the IE can just view the text file anyway! I thought i was gonna have to write some complicated perl program but thank god not!

  4. #4
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    you could just use

    <!-- #include file="file.txt" -->

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width