reading file byLine

Namal via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 7 09:13:30 PST 2015


On Saturday, 5 September 2015 at 14:49:13 UTC, deed wrote:
> On Saturday, 5 September 2015 at 14:44:19 UTC, deed wrote:
>>  .map!(s => chomp(s, "\"")
>>  .map!(s => chompPrefix(s, "\"")
>
> should be
>
>  .map!(s => chomp(s, "\""))
>  .map!(s => chompPrefix(s, "\""))

Hello again,

Now I have a file that looks like

a b c d
e f g h
....

I want to get that in an element of strings but without quatation 
marks

	auto a = f.byLine()
		.map!(a => a.split)
		.array();

	f.close();




More information about the Digitalmars-d-learn mailing list