StreamReader

1.0.1

mxcl/StreamReader

What's New

1.0.1

2019-08-18T20:51:00Z

StreamReader

Efficiently reads a file delimited by a character (by default \n). The delimiter is omitted from the returned String. Can be iterated.

import StreamReader

for line in StreamReader(path: Path.cwd/"foo") {
    print(line)
}

StreamReader(path: Path.home/"bar").compactMap(Int.init)

Description

  • Swift Tools 4.2.0
View More Packages from this Author

Dependencies

Last updated: Tue Nov 05 2024 00:40:50 GMT-1000 (Hawaii-Aleutian Standard Time)