Skip to content

yossan/UTF8FileLineReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages