Got a string let say
string mystring = "A\nB\nC\nD\nE\nF\nG\n"
want to convert it with | for chunk of 5
string Converted string ="ABCDE|FG"
Any one liner solution..
I am going this way
private void TweakInputLines(string InputData)
{
List<string> lstInput = new List<string>();
if (!string.IsNullOrEmpty(InputData))
{
lstInput = InputData.Split('\n').ToList();
if (lstInput.Count > 4)
{
}
}
}