I have a char ('-') and a number (80) of times it should be repeated in a string.
I need to get a string of that char repeated given number of times:
-------------------------------------------------------------------------------------------------------------
I know I can do result += myChar x N times in a loop. I don't think it is very efficient. Is there a better way to do that?
By the most efficient I mean: fastest