I have a string which contains binary digits. How to separate string after each 8 digit?
Suppose the string is:
string x = \"111111110000000011111111
I am more than late with my answer but you can use this one:
static string PutLineBreak(string str, int split) { for (int a = 1; a <= str.Length; a++) { if (a % split == 0) str = str.Insert(a, "\n"); } return str; }