reading file byLine

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


On Saturday, 7 November 2015 at 17:13:33 UTC, Namal wrote:
> 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();

Sorry for double post, I pressed accidently 'enter'. How can I ad 
chomp so the quatation marks are removed?


More information about the Digitalmars-d-learn mailing list