import std.format;
void main() {
string s = "Name Surname 18";
string name, surname;
int age;
formattedRead(s, "%s %s %s", &name, &surname, &age);
// %s selects a format based on the corresponding argument's type
}
Official documentation for the format strings can be found at: https://dlang.org/phobos/std_format.html#std.format