// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public class Program { private const string TABLE_TEMPLATE = @" {0}
"; private const string TR_TEMPLATE = @" {0} {1} "; public static void Main(string[] args) { string body = "\r\n"; for(int i = 0; i < 5; i++) { body += "\r\n"; body += "\r\n"; body += "\r\n"; body += "\r\n"; } body += "
"; body += i.ToString(); body += ""; body += ("X" + i); body += "
\r\n"; Console.WriteLine(body); string alltd = ""; for(int i = 0; i < 5; i++) { alltd += String.Format(TR_TEMPLATE, i, "X" + i); } string bodyalt = String.Format(TABLE_TEMPLATE, alltd); Console.WriteLine(bodyalt); } } }