InputStream.vreadf

Scan a string from the input using a similar form to C's scanf and <a href="std_format.html">std.format</a>.

An argument of type string is interpreted as a format string. All other arguments must be pointer types. If a format string is not present a default will be supplied computed from the base type of the pointer type. An argument of type string* is filled (possibly with appending characters) and a slice of the result is assigned back into the argument. For example the following readf statements are equivalent:

int x;
double y;
string s;
file.readf(&x, " hello ", &y, &s);
file.readf("%d hello %f %s", &x, &y, &s);
file.readf("%d hello %f", &x, &y, "%s", &s);
interface InputStream
int
vreadf
(
TypeInfo[] arguments
,
va_list args
)

Meta