Array Printing
Anton Fediushin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 12 00:28:00 PDT 2017
On Tuesday, 12 September 2017 at 06:29:53 UTC, Vino.B wrote:
> Hi All,
>
> Request your help in printing the below array output as per
> the below required output
>
> Array Output:
> ["C:\\Temp\\TEST2\\BACKUP\\dir1", "34",
> "C:\\Temp\\TEST2\\BACKUP\\dir2", "36",
> "C:\\Temp\\TEST3\\BACKUP\\dir1", "69"]
> ["C:\\Temp\\TEST2\\PROD_TEAM\\dir1", "34",
> "C:\\Temp\\TEST2\\PROD_TEAM\\DND1", "34"]
> ["C:\\Temp\\TEST2\\TEAM\\DND1", "34"]
>
>
> Required output:
> C:\Temp\TEST2\BACKUP\dir1 34
> C:\Temp\TEST2\BACKUP\dir2 36
> C:\Temp\TEST3\BACKUP\\dir1 69
> C:\Temp\TEST2\PROD_TEAM\\dir1 34
> C:\Temp\TEST2\PROD_TEAM\\DND1 34
> C:\Temp\TEST2\TEAM\\DND1 34
>
> From,
> Vino.B
Try this:
writefln("%(%s\n%)", array);
See std.format's documentation for more
More information about the Digitalmars-d-learn
mailing list