private void ReadPlayersNames() { TextReader f = readerFactory.GetTextReader(path, "LUC"); String s = f.ReadLine(); f.Close(); for (int i = 0; i < pairsNumber; i++) { List <Player> playersNames = new List <Player>(); Player pl = new Player(s.Substring(i * 26 * 2, 26)); playersNames.Add(pl); pl = new Player(s.Substring(i * 26 * 2 + 26, 26)); playersNames.Add(pl); Pairs.AddPair(playersNames); } }