public void LoadIt(int[] primes2in) { /* * Input format: type d nmin nmax lmin lmax dt dist */ Console.WriteLine("Enter param file number below:"); line = Console.ReadLine(); path = direcpath; path = path + "\\rubiks\\standard\\cstuff\\params\\par" + line + ".dat"; lines = System.IO.File.ReadAllLines(path); nls = lines.Length; for (int yyy = 0; yyy < nls; yyy++) { rss1 = new RunStuff1(); rss1.SetDirecPath(direcpath); rss1.DoIt3(lines[yyy], primes2in); } }
static void Main(string[] args) { string line2 = "2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443"; string[] things2 = line2.Split(","); int fool = things2.Length; int[] primes2 = new int[fool]; DirectorySetup setup = new DirectorySetup(); setup.EnterDirecPath(); for (int ai = 0; ai < fool; ai++) { primes2[ai] = int.Parse(things2[ai]); } Console.WriteLine("Hello World!"); int foo = 0; if (foo == 0) { RunStuff1 rs1 = new RunStuff1(); rs1.SetDirecPath(setup.GetDP()); rs1.DoIt(primes2); DataFileMaker dfm = new DataFileMaker(); dfm.ReadAllRuns(); } else if (foo == 1) { RunStuff0 rs0 = new RunStuff0(); rs0.SetDirecPath(setup.GetDP()); rs0.DoStuff2(1, 3, 15, primes2, 100, 10000); } else if (foo == 2) { ParamLoader loadz = new ParamLoader(); loadz.LoadDirecPath(setup.GetDP()); loadz.LoadIt(primes2); } }