#! /usr/local/bin/perl
#
# id=form2r.cgi
#
# FORM2.CGIで書き込んだファイルを読み表示する
# update. 00.2.13
# ファイル名
$file = "/dialup/chichibu/cgi-bin/form1.dat";
# ブラウザに出力
print "Content-type: text/html\n\n";
print "\n
\n";
print "ファイル処理(2)\n";
print "\n\n";
print "ファイルの内容を表示します
\n";
print "
";
# 1.ファイルを読み出しモードでオープン
open(DATA,"$file");
# 2.読み込み、 WHILE命令により、ファイルの最後まで1行ずつ読み込み表示します
# わかりやすくするため、改行させて表示させます
while() { print ; print '
';}
# 3.ファイルを閉じます
close(DATA);
print "\n\n";
################## end of script ##################