
btcmai
Deleted
Oct 30, 2000, 10:11 PM
Post #1 of 1
(280 views)
|
Printing to html
|
Can't Post
|
|
In the current setup this subroutine will at present add new text before the first line at the top of a html file designated as $list. I want the information as its parsed from a form to be added to the last line of the html file as new information is added to the file. Heres the script; open (LISTFILE,"<$list") | | &noLIST; @LINES=<LISTFILE>; close(LISTFILE); $SIZE=@LINES; open (LISTFILE,">$list") | | die "Can't Open $output: $!\n"; $fileSIZE = $SIZE; for ($i=0;$i<=$fileSIZE;$i++) { $_="$LINES[$i]"."\n"; print LISTFILE $LINES[$i]; I'm sure there's an easy way to have the script write to the html file in the way I want it to. Can anyone out there assist me please. Thanks in advance. [This message has been edited by btcmai (edited 11-01-2000).]
|