Swift Package Index



  • The latest stable release is 1.0.1. Released over 1 year ago.
  • The last commit to master was over 1 year ago.

Swift Version Compatibility

  • 1.0.1 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.0.1 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

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)