There is a file with the following contents:
Tr_RouteFile (RouteID (USA1) Name ("Northeast Corridor")
and such code:
string[] dirroutes = new DirectoryInfo("D:\\games\\train simulator\\routes").GetFiles("*.trk",SearchOption.AllDirectories).Select(f => f.Name).ToArray(); foreach (string s in dirroutes) { metroComboBox1.Items.Add(s); } need Name("Northeast Corridor") from file to be added to metroComboBox1 , how to do it?