public static void ReadfromFile(out Portfolio port) { //Reading input data from a file char[] Dividers = { ',', ' ', '\t' }; StreamReader InputSR; DataInput.OpenFile(out InputSR); ReadLocation(InputSR, Dividers, out port); InputSR.Close(); //Ending for reading input data from a file }
public static void ReadfromFile(out int NoJob, out int NoMc, out int[] NoOp, out job[] Job) { //Reading input data from a file char[] Dividers = { ',', ' ' }; StreamReader InputSR; ReadInput.OpenFile(out InputSR); ReadInput.ReadFile1NoJobMc(InputSR, Dividers, out NoJob, out NoMc); NoOp = new int[NoJob]; Job = new job[NoJob]; ReadInput.ReadFile2ProcessTimeMachineNo(InputSR, NoJob, ref NoOp, ref Job, Dividers); //For MaxWeightedTardiness & MaxWeightedEaeliness ReadInput.ReadFile3ReadyTime(InputSR, ref Job, Dividers); //For MaxWeightedTardiness & MaxWeightedEaeliness ReadInput.ReadFile4DueDate(InputSR, ref Job, Dividers, NoJob); //For MaxWeightedTardiness & MaxWeightedEaeliness ReadInput.ReadFile5WeightTardy1Line(InputSR, ref Job, Dividers, NoJob); InputSR.Close(); //Ending for reading input data from a file }