Program: VB.NET 2010 Express.
Hello.
I have this function.
Public Function OpenKey() As Boolean
Dim s2 As String = "www.xx.com/config.txt
Dim webRequest__1 As Net.WebRequest = Net.WebRequest.Create(s2)
Dim webResponse As Net.WebResponse = webRequest__1.GetResponse()
Dim streamReader As New StreamReader(webResponse.GetResponseStream())
Dim S1 As String = streamReader.ReadLine()
Dim flag2 As Boolean = String.Compare(S1, "0", False)
If flag2 Then
Return True
Else
Return False
End If
End Function
If config.txt have 0 value on xx.com website, program will not open. ETC..
With this function I can control client with a web site.
BUT I have many config keys. And I must do it with one txt file.
As Example.
I have config.txt file.
config.txt content:
1
0
1
0
0
1
I must do it with one txt file. Example using:
GetConfig(URL,1 OR 0 (True OR False), LINE (1,2,3,4,5,6 ....))
Thank you very much for help. I'm waiting.
Hello.
I have this function.
Quote:
Public Function OpenKey() As Boolean
Dim s2 As String = "www.xx.com/config.txt
Dim webRequest__1 As Net.WebRequest = Net.WebRequest.Create(s2)
Dim webResponse As Net.WebResponse = webRequest__1.GetResponse()
Dim streamReader As New StreamReader(webResponse.GetResponseStream())
Dim S1 As String = streamReader.ReadLine()
Dim flag2 As Boolean = String.Compare(S1, "0", False)
If flag2 Then
Return True
Else
Return False
End If
End Function
With this function I can control client with a web site.
BUT I have many config keys. And I must do it with one txt file.
As Example.
I have config.txt file.
config.txt content:
1
0
1
0
0
1
I must do it with one txt file. Example using:
GetConfig(URL,1 OR 0 (True OR False), LINE (1,2,3,4,5,6 ....))
Thank you very much for help. I'm waiting.