Results 1 to 2 of 2
  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012

    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
    Chelmsford UK

    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


Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.