I am facing an issue with manupulation of string.I am getting value in string as:
"Character Counter is a 100% free
To find out the word and characte
Character and word limits are quite
For students, there are usually limits or minimums for homework assignments.
Character Counter is a 90% free
To find out the word and character
Character and word limits are fine."
I have to enter these string in a comment box where the limitation of comment box is 115 characters only. If string characters are increasing then have to split the first 115 charcters and enter the comments two times.
Output I am getting is:
Character Counter is a 100% free
To find out the word and characte
Character and word limits are quite
For students, t
The issue is when I am splitting the character It is splitting in between the words (incomplete).
Can we do something like splitting the characters in such a way so the text should display appropriately.
(From i in Enumerable.Range(0,CInt(Math.Ceiling(strInput.Count/115))).Select(Function(x)x*115) Select String.Join("",strInput.Skip(i).Take(115).ToArray)).ToArray