Update: Rereading your post I see that you only have $filename inside the loop which explains why the open fails. Why is this so ?
In reply to Re: Logic problem
by guha
in thread Logic problem
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |