usql
usql copied to clipboard
USqlStreamReader.Split(delimiter) doesn't seem to work correctly
var stream = new FileStream(@"....\ExtractorsUnitTests\InputFiles\Test.json", FileMode.Open); Encoding encoding = Encoding.UTF8; var streamList = new USqlStreamReader(stream).Split(encoding.GetBytes("\r\n")).ToList();
Although, the file has multiple lines the "streamList" only gets the first line(first stream) as the output. I also checked that it's not reading the entire file at once.
Any solution for the same ?
This looks like a VS tool unit test issue...