in reply to Re: How do I read files in a directory and not directories?
in thread How do I read files in a directory and not directories?

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^2: How do I read files in a directory and not directories?

Replies are listed 'Best First'.
Re^3: How do I read files in a directory and not directories?
by fishbot_v2 (Chaplain) on Mar 13, 2006 at 14:04 UTC
    "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.