I have a string which i have initialized to empty and building the string as seen below i have also got the preferred output i would like, whats the best mathod of doing this as this would be sent as an email. tak into account company names will be off different length.
string being buit
foreach(string s in array)
{
emailBody += s + " Success" + Environment.NewLine;
}
Ouput of String
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
Would like output like below
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
Output of Solution given
qxeawgentina Success
TweseqmeChile Success
Vidqwedal Success
qwebr Success
Doqa_brasil Success
Sedaqqagentina Success
KnaqwertArtina Success