Thanks you again Sven, it will work with that, but there is nothing on Streams?
2016-05-11 16:19 GMT+02:00 Sven Van Caekenberghe <s...@stfx.eu>: > Did you see #lines and #linesDo: ? > > > On 11 May 2016, at 16:15, Valentin Ryckewaert < > valentin.ryckewa...@gmail.com> wrote: > > > > Hi, > > > > I would like to reproduce the grep command in Pharo. > > To do it I wanted to get the content of a stream and transform it to an > OrderedCollection (to use matchesRegex: on it). > > > > First of all, is there an easier way to do it? > > In a second time, is there a method to get the content of a Stream as an > OrderedCollection ? (nextLine exists so I could use it to get my > OrderedCollection but is there an easier way?) > > >