Hi monks. I want to make a program that reads a directory looking for subdirectories. It look like this :
opendir($dh,"C:/"); while($var = readdir($dh)){ if(-d $var){ print "$var\n"; } } close $fh;
I was expecting to get a list with the foldernames Can someone explain why this example is not working? According to a source on the internet this looks ok, hope you can help me. tx.
In reply to read directory by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |