Ashok Kambhampati wrote:
give give me answer that that question
i want program in c#.net not an explanation
That sound's suspiciously like a demand; But I'll give you the benefit of the doubt.
SMS stuff right?
try this:
private string[] StringSplitter(string splitee, int length)
{
List strings = new List();
int ubound = (int)Math.Floor(((double)(splitee.Length/length)));
for(int i = 0; i < ubound; i++)
{
strings.Add(splitee.Substring((i*length),length));
}
if(splitee.Length > ((ubound-1) * length))
strings.Add(splitee.Substring(ubound * length));
return strings.ToArray();
}