Split spaces with space

image_pdfimage_print
   
   

using System;
using System.Text;
class SplitStringApp {
    static void Main(string[] args) {

        string u = "A   B A C E   F";
        char[] sep3 = new char[] { ' ' };
        foreach (string ss in u.Split(sep3))
            Console.WriteLine(ss);
    }
}

   
    
     


This entry was posted in Data Types. Bookmark the permalink.