Ejemplo n.º 1
0
 // Insert logic for processing found files here.
 public static void ProcessFile(string path, Map map)
 {
     if (!path.EndsWith(".csv"))
     {
         return;
     }
     var singleMap = new ReadSingleMap();
     var typeSplit = path.Split('-');
     var type = typeSplit[typeSplit.Length - 1];
     type = type.Substring(0, type.Length - 4);
     singleMap.ReadMap(path, type, map);
     System.Console.WriteLine("Processed file '{0}'.", path);
 }
Ejemplo n.º 2
0
        // Insert logic for processing found files here.
        public static void ProcessFile(string path, Map map)
        {
            if (!path.EndsWith(".csv"))
            {
                return;
            }
            var singleMap = new ReadSingleMap();
            var typeSplit = path.Split('-');
            var type      = typeSplit[typeSplit.Length - 1];

            type = type.Substring(0, type.Length - 4);
            singleMap.ReadMap(path, type, map);
            System.Console.WriteLine("Processed file '{0}'.", path);
        }