From 34799fd17391431b06588e5e502991dfeba7091e Mon Sep 17 00:00:00 2001 From: evalparse Date: Sat, 31 Aug 2019 23:03:49 +1000 Subject: [PATCH] Concrete example of loading data using `load` Added an example of how to load CSV files that don't have the extension of .csv. I often struggle to use it by looking at the README. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 912c4f3..a6f8dab 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,13 @@ The ``load`` function also takes a number of parameters: ````julia load(f::FileIO.File{FileIO.format"CSV"}; ...) ```` + +For example, to load a CSV file that doesn't have the extension ".csv", you need + +```julia +load(File(format"CSV", "csv_file.txt")) +``` + #### Arguments: * ``delim``: the delimiter character