Dec 19, 2002 #1 nswan12 Programmer Dec 19, 2002 1 GB Hi, has anybody got any code to read a text file and display the output on a webpage? Thanks Nick
Dec 19, 2002 #2 jimberger Programmer Jul 5, 2001 222 GB hello, do something like this print "<HTML>"; open (FILE, "file.txt" while ($line = <FILE) { print "<P> $line </P>"; } close (FILE); print "</HTML>"; Upvote 0 Downvote
hello, do something like this print "<HTML>"; open (FILE, "file.txt" while ($line = <FILE) { print "<P> $line </P>"; } close (FILE); print "</HTML>";
Dec 19, 2002 #3 tanderso IS-IT--Management Aug 9, 2000 981 US Don't forget to Code: print "Content-type:text/html\n\n"; before attempting to print out HTML code. Sincerely, Tom Anderson CEO, Order amid Chaos, Inc. http://www.oac-design.com Upvote 0 Downvote
Don't forget to Code: print "Content-type:text/html\n\n"; before attempting to print out HTML code. Sincerely, Tom Anderson CEO, Order amid Chaos, Inc. http://www.oac-design.com