From e060afed52190f0dc5701ba631d24f5956fff3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Sat, 15 Dec 2018 18:25:37 +0100 Subject: [PATCH] lagt till character analyse --- 2018_05/Program.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/2018_05/Program.cs b/2018_05/Program.cs index 055f93d..2a0a3cd 100644 --- a/2018_05/Program.cs +++ b/2018_05/Program.cs @@ -16,7 +16,24 @@ namespace _2018_05 string resTab = File.ReadAllText(@"..\..\..\Data\Adventofcode_181205\2018_05_data.txt"); //string resTab = "dabAcCaCBAcCcaDA"; + SortedSet charset = new SortedSet(); + foreach(char x in resTab.ToCharArray()) + { + try + { + charset.Add(x); + } + catch (Exception) + { } + } + + foreach(char y in charset) + { + Write($"{y},"); + } + + ReadKey(); int varv = 0;