Jan 19, 2018 01:58 AM
(This post was last modified: Jan 19, 2018 01:58 AM by ThatAlbinoFrog.)
How would I got about importing a txt file with login details formatted like -
USERNAME1:PASSWORD1
USERNAME2:PASSWORD2
USERNAME3:PASSWORD3
I want to import the text file, then have the USER go into one textbox and the PASSWORD go into the other. Sorry if this is worded poorly, I'm pretty new to coding, and I'm completely lost when it comes to this.
This is kinda what I'm trying to do in a really dumb way -
Thanks heaps!
USERNAME1:PASSWORD1
USERNAME2:PASSWORD2
USERNAME3:PASSWORD3
I want to import the text file, then have the USER go into one textbox and the PASSWORD go into the other. Sorry if this is worded poorly, I'm pretty new to coding, and I'm completely lost when it comes to this.
This is kinda what I'm trying to do in a really dumb way -
Code
OpenFileDialog1.ShowDialog()
TextBox1.text = (IO.File.ReadAllLines(OpenFileDialog1.FileName))
if TextBox1.text contains (":") then
TextBox2.text = (Text After The :)
TextBox1.text = (Text Before the :)
Do all the functions with that login
Then read the next line and use that pair login details (USERNAME2:PASSWORD2)Thanks heaps!



![[Image: eLHfvfD.png]](https://i.imgur.com/eLHfvfD.png)
![[Image: Xiuymkc.png]](https://i.imgur.com/Xiuymkc.png)