Sinz
Member
- Joined
- Feb 14, 2008
- Messages
- 6
- Programming Experience
- Beginner
hey guys and gals,
i have managed to write the username and password to a text file (registration process)
now when the user logs in i need to check the username and password in the text file to what the user has put in. this is where my problem starts i have no idea what i should be doing for this: this is the code i have so far but any help would be very much appreciated:
i was hoping that this would just give me the user name and password from the text file in the message box, as i separated them with "|". i also have no idea how to scan or check the file for the username and password this is just a rough guess as to what i would have to do. please help me i need to hand this assignment in in 14hours!!! hehe...
many thanks, Sinz
i have managed to write the username and password to a text file (registration process)
now when the user logs in i need to check the username and password in the text file to what the user has put in. this is where my problem starts i have no idea what i should be doing for this: this is the code i have so far but any help would be very much appreciated:
VB.NET:
Dim password, Username, contents As String
Dim i As IO.StreamReader = IO.File.OpenText("Register_Records.txt")
password = txtPassword.Text
Username = TxtUsername.Text
contents = i.Read()
contents.Split("|")
MsgBox(contents)
If contents = Username & password Then
Edit_Competitor.Show()
Else
MsgBox("incorrect Username/password.")
End If
many thanks, Sinz