Splitting Strings : String Split : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » String Split »

 

Splitting Strings









    

/*
 * C# Programmers Pocket Consultant
 * Author: Gregory S. MacBeth
 * Email: gmacbeth@comporium.net
 * Create Date: June 27, 2003
 * Last Modified Date:
 */
using System;

namespace Client.Chapter_6___Strings
{
  public class SplittingStrings
  {
    static void Main(string[] args)
    {
      string MyString = "The quick brown fox ran around!";
      string[] MyStringSplit = new string[6];

      MyStringSplit = MyString.Split(new char[] { ' ' }, 6);
      Console.WriteLine(MyStringSplit[1] + MyStringSplit[3]);
    }
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» String Split