Example #1
0
        static void Main()
        {
            Binparser bp = new Binparser();

            UpdateFieldsLoader.LoadUpdateFields();

            DateTime starttime = DateTime.Now;

            Console.WriteLine("Starting at {0}", starttime);

            DirectoryInfo di = new DirectoryInfo(".");                            // DirectoryInfo

            FileInfo[] fi = di.GetFiles("*.sqlite", SearchOption.AllDirectories); // Get file list

            Console.WriteLine("Found {0} files to parse", fi.Length);

            foreach (FileInfo f in fi)
            {
                ParseFile(f);
            }

            TimeSpan worktime = DateTime.Now - starttime;

            Console.WriteLine("Done in " + worktime.ToString() + "!");
            Console.ReadKey();
        }
Example #2
0
        static void Main()
        {
            Binparser bp = new Binparser();

            UpdateFieldsLoader.LoadUpdateFields();

            DateTime starttime = DateTime.Now;

            Console.WriteLine("Starting at {0}", starttime);

            DirectoryInfo di = new DirectoryInfo("."); // DirectoryInfo
            FileInfo[] fi = di.GetFiles("*.sqlite", SearchOption.AllDirectories); // Get file list

            Console.WriteLine("Found {0} files to parse", fi.Length);

            foreach (FileInfo f in fi)
            {
                ParseFile(f);
            }

            TimeSpan worktime = DateTime.Now - starttime;
            Console.WriteLine("Done in " + worktime.ToString() + "!");
            Console.ReadKey();
        }