最佳答案
我需要生成一个固定长度的字符串来生成一个基于字符位置的文件。缺少的字符必须用空格字符填充。
As an example, the field CITY has a fixed length of 15 characters. For the inputs "Chicago" and "Rio de Janeiro" the outputs are
" Chicago" " Rio de Janeiro".