Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27072

VS 2012 Application That Login in a website with a textfile

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 27072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>