You can create a template html file, then insert a phrase in the middle that
is searched-and-replaced.

Such as ..
<HTML><BODY>INSERTTEXT</BODY></HTML>

Then the perl script would do..

$textfile="file.txt";
open(IN, $textfile) or die $!;
while(<IN>) {$text.=$_;}
close(IN);
## then do the same for $htmlfile
$htmlfile=~ s/INSERTTEXT/$text/g;

Agustin Rivera
Webmaster, Pollstar.com
http://www.pollstar.com



----- Original Message -----
From: "Jack Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 10:13 AM
Subject: Insert text in HTML page...


> Hello to all! Somebody could say to me as I can insert the content of a
text
> file in a page HTML? What happens is that this file is updated frequently
> and desire to print its content in a page Web.
> Could be... print " file.txt ";?????
>
> Any advice well is received. Thanks
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to