Skip to content

How to use it consuming input from a stream? #73

@hernanmd

Description

@hernanmd

This is possibly related with #55

I want to parse a big CSV file line by line, and I hoped it was something like:

aCSVStream := 'myFile.csv' asFileReference readStream.
ZnBufferedReadStream 
	on: aCSVStream 
	do: [ :stream | (PP2CommaSeparatedParser parse: stream) row ]

But it didn't worked and isn't entirely clear to me what could be a way to parse input from a stream.
Is this possible right now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions