Y
ywchan
I would like to convert a string to a fixed length
e.g. if fixed length = 10
'abc' -> ' abc'
'abcdefghijklm' -> 'abcdefghij'
Is there any simple function in C# can perform this operation?
thanks!
e.g. if fixed length = 10
'abc' -> ' abc'
'abcdefghijklm' -> 'abcdefghij'
Is there any simple function in C# can perform this operation?
thanks!