printf

The printf method formats the arguments following a format string.

 

Syntax

System.String printf(System.Int32 cFormat ,  arguments );

 

Parameters

cFormat

format string

arguments

arguments to be formatted into the string

 

Return Value

Returns the formatted string.

 

Remarks

It is similar to the C function of the same name.

 

Member of util.

 

Example