How To Get a Form to Fetch Login Data From a *.txt file?-VBForums
Results 1 to 2 of 2

Thread: How To Get a Form to Fetch Login Data From a *.txt file?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    12

    How To Get a Form to Fetch Login Data From a *.txt file?

    I know this is very insecure for logins, but this is out of curiosity.

    How Would I make a login form but instead of having
    If TextBox1.Text = ("username")
    and all that stuff how would I make it would get the login data from a *.txt file uploaded
    online (i.e. mysite.com/logins.txt) so I could add new users to the list and not make a new version?

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    21,471

    Re: How To Get a Form to Fetch Login Data From a *.txt file?

    to read an online text file into an array of strings:

    vb.net Code:
    1. Dim wc As New Net.WebClient
    2. Dim lines() As String = wc.DownloadString("url of text file").Split(New String() {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.