Documentation
getNextFile
usage
file/folder child = folder->getNextFile()
retourne
an object representing a file or folder contained in the current folder.
exemples
include('../Kernel/common/file.class.php');
$summary = new File('/media/summary.txt');
$summary->create();
$folder = new Folder('/media/docs/');
while($file = $folder->getNextFile() ){
if($file->getExtension() == 'txt')
$summary->append( $file->toString() );
}