Merge pull request #5 from mxcl/xcode-13 Include macOS 11
Merge pull request #5 from mxcl/xcode-13
Include macOS 11
Efficiently reads a file delimited by a character (by default \n). The delimiter is omitted from the returned String. Can be iterated.
\n
String
import StreamReader for line in StreamReader(path: Path.cwd/"foo") { print(line) } StreamReader(path: Path.home/"bar").compactMap(Int.init)
StreamReader
Efficiently reads a file delimited by a character (by default
\n). The delimiter is omitted from the returnedString. Can be iterated.