Merge pull request #34 from yaslab/readme

Update README.md
This commit is contained in:
Yasuhiro Hatta 2017-07-17 15:52:09 +09:00 committed by GitHub
commit f534685017
2 changed files with 6 additions and 6 deletions

View File

@ -79,9 +79,9 @@ import Foundation
import CSV
let stream = InputStream(fileAtPath: "/path/to/file.csv")!
let csv = try! CSV(stream: stream,
codecType: UTF16.self,
endian: .big)
let csv = try! CSVReader(stream: stream,
codecType: UTF16.self,
endian: .big)
```
## Usage for writing CSV

View File

@ -69,9 +69,9 @@ class ReadmeTests: XCTestCase {
func testProvideTheCharacterEncoding() {
// let stream = InputStream(fileAtPath: "/path/to/file.csv")!
// let csv = try! CSV(stream: stream,
// codecType: UTF16.self,
// endian: .big)
// let csv = try! CSVReader(stream: stream,
// codecType: UTF16.self,
// endian: .big)
}
// MARK: - Writing