Closed MichalCz closed 2 years ago
Is your feature request related to a problem? Please describe.
Every time we need to parse a file there's a lot of code needed.
Describe the solution you'd like
This should work:
StringStream.fromFile('./path/to/file', {encoding: 'utf-8'}) .lines() .reduce((sum, x) => sum + (x ? 1 : 0))
Ok, slight mod... should be fromUri?
fromUri
Is your feature request related to a problem? Please describe.
Every time we need to parse a file there's a lot of code needed.
Describe the solution you'd like
This should work: