public static IndentedTextWriter GetGameLogWriterForIteration(PlayerAction[] playerActions, int gameCount) { string fileName = GetFileNameForType(playerActions, gameCount, "GameLog"); if (fileName == null) return null; return new IndentedTextWriter(new System.IO.StreamWriter(fileName)); }