"I would imagine that using the while statement instead of for would reduce the chance of the program getting caught in a loop."
Um, okay, I'll bite: Why? Whatever do you mean? There are some advantages to using while with the iterator form rather than for with the list form... I can't see how this is one of them.
I think that it's actually considerably harder to accidentally write an infinite for than an infinite while.
In reply to Re^3: How do I read files in a directory and not directories?
by fishbot_v2
in thread How do I read files in a directory and not directories?
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |