3
I need to format a string so that it contains only 30 characters.
If you are less than 30, you should complete it with blanks, and if you have more, you should leave it with only 30.
I know you must have a way to do it like this:
string.Format("{0: }, item.nome");
But then it’s not working.
Any hint?
Another duplicate: Problem with Padleft
– Jéf Bueno