(my_string).PadLeft(16 , '0');
PadLeft
0
int i = 45; string padded = i.ToString("D16");
var number = 45; var text = number.ToString("D16");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)