Documentation for method printf

Documentation for method printf, assembled from the following types:

class IO::Handle

From IO::Handle

(IO::Handle) method printf

method printf(IO::Handle:D: Cool $format*@args)

Formats a string based on the given format and arguments and .prints the result into the filehandle. See sub sprintf for details on acceptable format directives.

my $fh = open 'path/to/file':w;
$fh.printf: "The value is %d\n"32;
$fh.close;