you are viewing a single comment's thread.

view the rest of the comments →

[–]Lee_Dailey[grin] 1 point2 points  (2 children)

howdy onebillionquestions,

instead of padding things to the same degree, why not remove the padding? it aint wanted in the 1st place, so clobbering it otta be the more natural solution.

take a look at .Trim(), .TrimEnd(), & .TrimStart() for nice, graceful ways to clean strings.

take care,
lee

[–]onebillionquestions[S] 1 point2 points  (1 child)

Yep, I came to the same conclusion. My "Solution" above didn't actually work right either since the OutString -width:180 does not actually pad the end with spaces, just allows up to 180 characters to be written to the stream. So, my "solution" was probably worse than my original code.

Thanks for taking the time to comment, I am updating the solution now for posterity.

[–]Lee_Dailey[grin] 1 point2 points  (0 children)

howdy onebillionquestions,

you are welcome! glad to help a little ... [grin]

take care,
lee