read()) { # if (! is_dir($file_name)) { $cm_files[$cnt] = $file_name ; $cnt++; # } } $cnt_max = $cnt - 1; for ($iii=0 ; $iii<=$cnt_max ; $iii++) { $fname1 = $dir ."/". $cm_files[$iii]; if (!($fp_r = fopen($fname1,"r"))) { print "[" . $fname1 . "]がオープン(r)できません。"; } while (!feof ($fp_r)) { $buffer = fgets($fp_r, 4096); $bf = trim ($buffer); print $bf ."\r\n"; } fclose ($fp_r); } ?>