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)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
StreamReader
Efficiently reads a file delimited by a character (by default
\n
). The delimiter is omitted from the returnedString
. Can be iterated.