write to file array by lines

Suliman via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 15 05:55:17 PDT 2016


I created better example to show.

string [] myarr = ["foo", "bar", "baz"];
myarr ~= "new";
File file = File(`result.txt`, "w");
file.write(myarr);

is any way to write myarr to file in byLine mode


More information about the Digitalmars-d mailing list