Download windowsZones.xml directly from unicode.org

This commit is contained in:
Robert Corrigan
2017-10-04 21:12:29 -04:00
parent b92636e900
commit 5fa2426fdb

View File

@@ -33,9 +33,10 @@ using System.Collections.Generic;
string tzid, windows;
const string file = @"WindowsZones.txt";
const string zonesUrl = @"http://www.unicode.org/repos/cldr/tags/latest/common/supplemental/windowsZones.xml";
List<string> list = new List<string>();
StreamWriter stream = new StreamWriter(file, false);
XmlTextReader reader = new XmlTextReader(@"windowsZones.xml");
XmlTextReader reader = new XmlTextReader(zonesUrl);
stream.WriteLine("struct _WINDOWS_TZID_ENTRY");
stream.WriteLine("{");