I have a string and I don't know its count of items. I want to split this string array into a new array. After that I need to remove duplicate items as in the example below.
For example in the below: the word "hi" and "friends" goes twice, but we write them once in second array, it doesn't always have to be two over, sometimes 3 or more over and word "hi" and "friends" only for example, maybe other words goes two or more times).
For example;
string[] myString = {"hello friends", "hi guys", "hi friends", "how are", "123654 u?", "today man", "! ?", "maybe tomorrow", "5 2-", "99 1585126", "(/&&/& _____"};
I want to split it into a new string array like that (according space characater);
string[] new = {"hello", "friends", "hi", "guys", "how", "are", "123654", "u?", "today", "man", "!", "?", "maybe", "tomorrow","5" ,"2-" ,"99", "1585126", "/&&/&", "_____"} ;