so basically i made an application that require login in my website ( automaticaly )
open = IO.File.ReadAllText(IO.Path.GetTempPath & "\mysiteLogin.txt")
Dim username As String
Dim pass As String
Dim SplitArray() As String = open.Split(vbLf)
For i = 0 To SplitArray.Length - 1
If SplitArray(i).Contains("Mywebsitehere.com") Then
username = SplitArray(i + 4).Split(":")(1).Split(" ")(1)
pass = SplitArray(i + 5).Split(":")(1).Split(" ")(1)
If Not username = "" Then
If Not pass = Nothing Then
Exit For
End If
In mysitelogin.text :
username : admin
pass: admin159
but for some reason it did not read the Text File Correctly, Not sure if i did something Wrong, But I know The problem Is From the Text file, right ?
open = IO.File.ReadAllText(IO.Path.GetTempPath & "\mysiteLogin.txt")
Dim username As String
Dim pass As String
Dim SplitArray() As String = open.Split(vbLf)
For i = 0 To SplitArray.Length - 1
If SplitArray(i).Contains("Mywebsitehere.com") Then
username = SplitArray(i + 4).Split(":")(1).Split(" ")(1)
pass = SplitArray(i + 5).Split(":")(1).Split(" ")(1)
If Not username = "" Then
If Not pass = Nothing Then
Exit For
End If
In mysitelogin.text :
username : admin
pass: admin159
but for some reason it did not read the Text File Correctly, Not sure if i did something Wrong, But I know The problem Is From the Text file, right ?