Пытаюсь вывести версию не получается, помогите! Код:
string str = String.Empty;
private void vertest()
{
try
{
string ts = "http://frostsecurity.net/frost/frostupdater/version.txt";
HttpWebRequest p = (HttpWebRequest)WebRequest.Create(ts);
Stream z = ((HttpWebResponse)p.GetResponse()).GetResponseStream();
new List<string>();
using (StreamReader v = new StreamReader(z, Encoding.UTF8))
{
while (v.Peek() >= 1)
{
string x = v.ReadLine();
if (x.Contains("pb_live"))
{
ver = str;
this.Frost.Text = x.Split(new char[] { '|' })[1];
}
}
}
}
catch { }
}
// Интересует сама строка:из pblive 3.0.0.27
new List<string>();? – VladD Jun 05 '16 at 21:11