From 4f40d9de5926c690b36003d3478e6100ef0c46ac Mon Sep 17 00:00:00 2001 From: jtackm Date: Wed, 28 Nov 2018 22:57:31 +0100 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 66f690d..a7568c7 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,12 @@ plot(load("data.csv"), x=:a, y=:b, Geom.line) One can load both local files and files that can be downloaded via either http or https. To download from a remote URL, simply pass a URL to the ``load`` function instead of just a filename. In addition -one can also load data from an ``IO`` object, i.e. any stream. The syntax +one can also load data from an ``IO`` object, i.e. any stream. The syntax for that scenario is ````julia -df = DataFrame(load(Stream(format"CSV", io))) +using FileIO +df = DataFrame(load(File(format"CSV", io))) ```` The ``load`` function also takes a number of parameters: @@ -89,9 +90,9 @@ This will work as long as ``it`` is any of the types supported as sources in [It One can also save into an arbitrary stream: ````julia -using CSVFiles +using CSVFiles, FileIO -save(Stream(format"CSV", io), it) +save(File(format"CSV", io), it) ```` The ``save`` function takes a number of arguments: