Thursday, January 27, 2011

Remove Multiple space

public string removemuttiplespace(string core)
{
string[] user = (core).Split(' ');
string spc = "";
for (int s = 0; s < user.Length; s++)
{
if (user[s].Length != 0)
{
spc += user[s].ToString() + " ";
}

}
return spc;
}

No comments:

Post a Comment