Here is the one from many solutions to break string into peaces...
public static class StringExtensions
{
public static IEnumerable<string> SplitInGroups(this String str, int chunkSize)
{
if (null == str)
throw new ArgumentNullException("str", "String can't be null.");
if (chunkSize <= 0)
throw new ArgumentException("Chunk size must be positive.", "chunkSize");
for (var i = 0; i < str.Length; i += chunkSize)
yield return str.Substring(i, Math.Min(chunkSize, str.Length - i));
}
}
</string>
Then you can use this extension method on any string that you want to break...
string yourString ="Some string...";
var stringGroups = yourString.SplitInGroups(150);
foreach(string stringGroup in stringGroups)
{
}
Then you can iterate through enumerable of strings and do want you want with each group...