It is required to display a flat table in the console. Currently decided this with:
Console.Write("{0, -20}|", text); With this code I set the minimum number of characters in a column, but if there are> 20 characters, everything will break. How to cut the output if the string is more than 20 characters?
Console.Write("{0, -20}|", text.Substring(0,17) + "...");? - Ev_Hyper