static void Main(string[] args) { Console.WriteLine("Hello World!"); // Read config List <string> configStrLst = new List <string>(new string[] { "element1", "element2" }); try { System.IO.StreamReader file = new System.IO.StreamReader(Constants.CONFIG_DIR); string line; int cnt = 0; while ((line = file.ReadLine()) != null) { configStrLst[cnt] = line; cnt++; } } catch (System.Exception e) { Console.WriteLine(e); Console.WriteLine("CONFIG FILE NOT FOUND"); Console.WriteLine(Constants.CONFIG_DIR); return; } string rawDir = configStrLst[0]; string plyDir = configStrLst[1]; // Read raw Raw rawData = new Raw(); PLY plyData = new PLY(); string plyPath; string[] rawPaths = Directory.GetFiles(rawDir); for (int i = 0; i < rawPaths.Count(); i++) { Console.WriteLine(rawPaths[i]); rawData.Load(rawPaths[i]); plyPath = plyDir + Path.GetFileName(rawPaths[i]) + ".ply"; plyData.Save(rawData, plyPath); } }