I noted there was insufficient information. I asked whether multiple attempts were allowed. I presented a clearly stated potential solution.
Allowing multiple attempts is the norm. I raised the absence of code to achieve this (i.e. while loop) along with a lack of any handling of a successful login attempt.
Both the array and hash solutions read the entire file; obviously, this is not something specific to the hash solution. The point I made was that this was only done once regardless of the number of attempts.
-- Ken
In reply to Re^3: reading from file.
by kcott
in thread reading from file.
by scripter87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |