lunes, 30 de julio de 2012

split strings separar strings en c#


using System;

class Program
{
    static void Main()
    {
 string s = "there is a cat";
 //
 // Split string on spaces.
 // ... This will separate all the words.
 //
 string[] words = s.Split(' ');
 foreach (string word in words)
 {
     Console.WriteLine(word);
 }
    }
}

No hay comentarios:

Publicar un comentario