I am having a file called customersinfo.txt this is how my file structure looks like
ID FirstName LastName Email Mobile UserName PassWord ConPassWord 1 John Sam JS@gmail.com 0123 JhonSam12 1234 1234 2 ---- ------ ----------- ---- ----- ------ -------
So my problem is it accepts multiple users with the same username what I want is to check when the customer enters his username whether if that username already exists in the file or not if that username already exists try to enter a different username if not accept and save it to the file
0 Answer(s)