Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Private Function checkDJ(ByVal username As String, ByVal password As String) As Boolean
  2.         Dim dj_file As String = My.Computer.FileSystem.ReadAllText(Application.StartupPath & "\djs.txt")
  3.         Dim djs() As String = dj_file.Split(";")
  4.         For Each curdj In djs
  5.             If curdj <> "" Then
  6.                 Dim dj_split() As String = curdj.Split("=")
  7.                 If username = dj_split(0) And password = dj_split(1) Then
  8.                     Return True
  9.                 End If
  10.             End If
  11.         Next
  12.         Return False
  13.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement