I have a text file that looks like this
username|password|email (format)
eg.
joe479|mypass|joe@479.com
shawn56|s56W|shawn@56.com
I want to be able to check for duplicate username and email's against a new registration input.
So that if the same email and/or username is found the new user will get an error saying the username is already taken or you can only have one account per email address
Can someone give me the code to do this. I tried exploding the file but I get errors.