Login  Register

NeoCSV and special handling for some columns

Posted by Nicolai Hess on Sep 28, 2015; 11:57am
URL: https://forum.world.st/NeoCSV-and-special-handling-for-some-columns-tp4852282.html

Hi,

I have two problems I could not solve:

1. I would like to read only some columns: I have a large file with
    ~30 colums, but I am only interested on ~5 columns
    (not that important, I could pre-process the file) but anyway it would be
    nice to do it in smalltalk.

2. some columns will contain only strings (quoted values) and some only numbers,
    but the field may be empty, is it possible to define the default "emptyValue" as an
    - empty string for empty fields in the "string column"
    - 0 for empty fields in the "number column"?


thanks
 in advance

nicolai