Array Printing
Vino.B via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 12 06:15:01 PDT 2017
On Tuesday, 12 September 2017 at 07:28:00 UTC, Anton Fediushin
wrote:
> 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
Hi,
Sorry, it didn't work, the genrated out is as below
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
More information about the Digitalmars-d-learn
mailing list