From f5f7f6e9c042dc5d1e9f6118050100c325937a7d Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Wed, 8 Jul 2015 11:18:58 +0200 Subject: [PATCH] NeoCSV: finish my pass --- NeoCSV/NeoCSV.pier | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/NeoCSV/NeoCSV.pier b/NeoCSV/NeoCSV.pier index 7d7425d..c4aa478 100644 --- a/NeoCSV/NeoCSV.pier +++ b/NeoCSV/NeoCSV.pier @@ -259,26 +259,8 @@ Array streamContents: [ :out | do: [ :each | each third < 1000 ifTrue: [ out nextPut: each ] ] ] ]. ]]] - -!! Without Mapping Definition - -Both NeoCSV and NeoJSON can operate in two ways, (1) without the definition of any schema's or (2) with the definition of schema's and mappings. Therefore you -can use them both using a quick and dirty explore style. Here are some examples: - -[[[ -'my-data.csv' asFileReference readStreamDo: [ :in | (NeoCSVReader on: in) upToEnd ]. - - -> an array of arrays -]]] - -[[[ -'my-data.json' asFileReference readStreamDo: [ :in | (NeoJSONReader on: in) next ]. - - => objects structured using dictionaries and arrays -]]] - !! Conclusion -NeoCSV provides a good support to emit or import comma separated data. +NeoCSV provides a good support to emit and import comma-separated data. % LocalWords: accessor