Skip to content

Commit 750d7dc

Browse files
committed
Add mention of readcsv() to README.md
1 parent 4dd2f23 commit 750d7dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ julia> readstring(io)
119119
"café\nnoël"
120120
```
121121

122+
In particular, this method allows reading encoded comma-separated values (CSV) and other character-delimited text files:
123+
```julia
124+
julia> open(readcsv, path, enc"UTF-16")
125+
2x1 Array{Any,2}:
126+
"café"
127+
"noël"
128+
```
129+
122130
## Advanced Usage: `StringEncoder` and `StringDecoder`
123131
The convenience functions presented above are based on the `StringEncoder` and `StringDecoder` types, which wrap I/O streams and offer on the fly character encoding conversion facilities. They can be used directly if you need to work with encoded text on an already existing I/O stream. This can be illustrated using an `IOBuffer`:
124132
```

0 commit comments

Comments
 (0)