how to split string into a list ignoring number of spaces csharp
Code Example - how to split string into a list ignoring number of spaces csharp
using System;
var text = "There is an old hawk in the sky";
var words = text.Split(' ', StringSplitOptions.RemoveEmptyEntries);
Array.ForEach(words, Console.WriteLine);