-
-
Save t0code/192bc73b15a6383bb94b to your computer and use it in GitHub Desktop.
whats wrong here?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def check_account(acct, pass) | |
file = File.open("account.txt", "r") | |
while !file.eof? | |
line = file.readline | |
if line.include?(acct) && line.include?(pass) | |
file.close | |
return 1 | |
end | |
file.close | |
return 0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment