public void set_company_cases() //Factory Done { Case case_comp = new CompanyFactory().GetCase(); string line; // Read the file and display it line by line. System.IO.StreamReader file = new System.IO.StreamReader(dir + "/Monopoly_SELMI_TRAN_DINH/Monopoly_SELMI_TRAN_DINH/bin/Debug/Company.txt"); while ((line = file.ReadLine()) != null) { string[] words = line.Split(','); board[int.Parse(words[0])] = case_comp.GetCase(); } file.Close(); }