Here is a string template read from file.
Name: %s
Age: %d
After I read it from file, I want to format this string using given name and age.
var template = File("file_path").readText()
MessageFormat.format(template, "Bod", 123)
print(template)
However I cannot format template. Its output is.
Name: %s
Age: %d
MessageFormatandStringformatting.String.formatuse%swhereMessageFormatuse{0}String.format("%s", *array)