Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no chars that can be the same so this word should be leaved.
static StringBuilder BeBalsiu(string fd, string eilute, string balses, char[] skyrikliai)
{
using (StreamReader sr = new StreamReader(fd, Encoding.GetEncoding(1257)))
{
string line;
while ((line = sr.ReadLine()) != null)
{
string[] parts = eilute.Split(skyrikliai, StringSplitOptions.RemoveEmptyEntries);
foreach (string word in parts)
naujas.Add(word);
}
}
return nauja;
}