this is my sample code to open a single file of .txt..here..
--->
<?php
$textfile = "example.txt";
$file = fopen("$textfile", 'r');
$Data = fread($file, filesize($textfile));
fclose($file);
$Data = explode("\n",$Data);
for($i=0;$i<count($Data);$i++)
{
$test=explode("|",$Data[$i]);
$name=$test[0];
$lname=$test[1];
echo "$name-$lname<br />";
}
?>
my problem now is..i want to open another .txt file that is inside the folder..pls do help me..thanks