I use:
public static string GoFlig() { List<int> sv = new List<int>(); for (int i = 1; i < 50; i++) { sv.Add(i); } return string.Join(" ", sv.ToArray()); } I call the function as html table)
using (StreamWriter vas = new StreamWriter(Log, false, Encoding.UTF8)) { vas.WriteLine("<tr><td style=\"color:#85AB70; width:33.3%; border:2px solid #707070; text-align: center\"><div style=\"height: 31px;line-height: 31px\"><center>{0}</center></p></div></td>", GoFlig()); } But it turns out like this:
Tell me where to put the for loop so that it returns values:
In the end, I should get this:
one
2
3
four
etc


StringBuildersame story. - GooliveRStringBuilderwhere it is possible byList<int>andStringBuilderadd afor?? loop! - GooliveR