Split with space

image_pdfimage_print
   
   

using System;
using System.Text;
class SplitStringApp
{
    static void Main(string[] args)
    {
        string s = "Once Upon A Time In America";
        char[] seps = new char[]{' '};
        foreach (string ss in s.Split(seps))
            Console.WriteLine(ss);
    }
}

   
    
     


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