Parsing a UTF-16LE file line by line?

Nestor via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 4 03:03:46 PST 2017


Hi,

I was just trying to parse a UTF-16LE file using byLine, but 
apparently this function doesn't work with anything other than 
UTF-8, because I get this error:

"Invalid UTF-8 sequence (at index 1)"

How can I achieve what I want, without loading the entire file 
into memory?

Thanks in advance.


More information about the Digitalmars-d-learn mailing list