using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FCFS_Console { class Program { static void Main(string[] args) { //----------------------------------------Reading I/O File-------------------------------------- string s = Environment.CurrentDirectory.ToString(); // returns the directory of the exe file if (File.Exists(s + @"input.txt")) //checking if the input files exists Console.WriteLine("File Exists"); else { Console.WriteLine("File Not Found"); Console.WriteLine("_________________________________________________________________"); return; } Console.WriteLine("_________________________________________________________________"); //----------------------------------------Data Into List-------------------------------------- string FileText = File.ReadAllText(s + @"input.txt"); //reading all the text in the input file string[] lines = FileText.Split(' '); //splitting the lines List processes = new List(); for (int i = 1; i