<>
Andy Burnett wrote:
> I have a small database containing questionnaire responses. The DB can
> output the responses (mainly descriptive paragraphs) in CSV format.
> Ideally, I would like to read each of the records into a collection of
> some kind. I was hoping that there might be a 'fromCSV:'
El 9/10/08 3:56 AM, "Ian J Cottee" <[EMAIL PROTECTED]> escribió:
> Many thanks for the pointer Edgar. I've installed and taken a look.
> It's obviously a lot easier to understand as a unit than the
> Connectors framework and if I don't make any progress I may well use
> your simulator as a star
I ususally do something like this:
(((FileStream readOnlyFileNamed: 'file.csv')
contentsOfEntireFile " read and close "
findTokens: String crlf) " split into lines "
reject: [:e | e isEmpty]) " lose empty lines "
collect: [:e | e findToke