Reading files using delimiters/terminators

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Sun Dec 27 17:04:57 UTC 2020


On Sunday, 27 December 2020 at 13:21:44 UTC, Rekel wrote:
> On Sunday, 27 December 2020 at 02:41:12 UTC, Jesse Phillips 
> wrote:
>> Unfortunately std.csv is character based and not string. 
>> https://dlang.org/phobos/std_csv.html#.csvReader
>>
>> But your use case sounds like splitter is more aligned with 
>> your needs.
>>
>> https://dlang.org/phobos/std_algorithm_iteration.html#.splitter
>
> But I'm not using csv right? Additionally, shouldnt byLine also 
> work with "\r\n"?

Right, you weren't using csv. I'm not familiar with the file 
terminater to known why it didn't work.

byline would allow \r\n as well as \n


More information about the Digitalmars-d-learn mailing list