示例#1
0
        static void Main(string[] args)
        {
            int    size          = 100000;
            string fileName      = "file.txt";
            string referenceFile = "referenceFile.txt";
            string sortFile      = "sortFile.txt";

            if (File.Exists(fileName))
            {
                File.Delete(fileName);
            }
            if (File.Exists(referenceFile))
            {
                File.Delete(referenceFile);
            }
            if (File.Exists(sortFile))
            {
                File.Delete(sortFile);
            }

            Generator(fileName, referenceFile, 1000000);

            Sorts.ExternalSort(fileName, sortFile, size);
            Console.ReadKey();
        }