Console.WriteLine("Data download test");
Console.WriteLine("---");
String currentVersion = "1.0";
if (CheckAndApplyUpdate(currentVersion))
public bool CheckAndApplyUpdate(String currentVersion)
using(WebClient client = new WebClient())
Stream stream = client.OpenRead("https://raw.githubusercontent.com/bigzz/linux/master/Documentation/arm/VFP/release-notes.txt");
StreamReader reader = new StreamReader(stream);
String tsvFile = reader.ReadLine() + Environment.NewLine;
if (currentVersion.Equals(tsvFile))
while (!reader.EndOfStream)
tsvFile += reader.ReadToEnd();
Console.WriteLine(tsvFile);
return writeFile(tsvFile);
public bool writeFile(String tsv)
string path = @"c:\path to install tool\tsv.txt";
File.WriteAllText(path, tsv);
Console.WriteLine("file write error:" + e);