posted 21 years ago
Im transforming an .xml to text to be inserted into the body of an email. The text is made up of numbered lines. Im trying to align the information to make it look like this
1.John abcd 1234
2.Joe dcd 1
3.James a 5222
I have attempted to make the information all the same length. I read John for example obtain the length and add the appropriate white spaces to make it all the same length. However this doesnt work since letters and other characters are of different length. Can anyone suggest a better way to approach this. Thank you for your time