Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 657 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 657 Bytes

UTF8FileLineReader

This module provides a function which reads a line from the file encoded UTF8.

USAGE

let fileLineReader = UTF8FileLineReader(path: `filePath`)

// read one line as Data
while let lineData = fileLineReader?.readLine() {
     // convert Data to String
    if let lineString = String(data: lineData, encoding: .utf8) {
    }
}

INSTALL

Swift Package Manager

Add the following into dependencies.

.Package(url: "https://github.com/ysn551/UTF8FileLineReader", "0.0.1")

LICENSE

BSD LICENSE


@ysn551, January 3,2017