Dim lines As String() = IO.File.ReadAllLines(FILE_NAME)
If System.IO.File.Exists(FILE_NAME) = True Then
For i = 0 To lines.Count - 1
Dim userkey As String = System.IO.File.ReadAllLines(FILE_NAME)(i)
If key.Text.Contains(userkey) Then
'shows many msgs at once i want to show only one msg
MsgBox("Thanks for registering ")
Else
End If
If Not key.Text.Contains(userkey) Then
MsgBox("Code error ")
End If
Next
End If
wizardkp 0 Newbie Poster
Reverend Jim 5,224 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.