Hi Alex
Thank you for your example and further guidance. I'll look into all of
those suggestions.
Best Regards

On 24 January 2017 at 17:02, Alexander Burger <a...@software-lab.de> wrote:

> Hi Dean,
> > I was reading each line in an input file text file, trimming it and
> seeing
> > if it was a member of a list that I'd created. If it was I was recording
> > the list type and the number of the line in the file.
> OK, good. So 'str' is not useful here. 'str' tries to parse a Lisp
> expression
> from the string, possibly giving errors if it is not legal Lisp syntax.
> Better to operate directly on (sub)strings perhaps, e.g. with
>    (in Pth
>       (until (eof)
>          (let? Lst (mapcar pack (split (line) " "))
>             ... operate on list of strings ...
> > Some of the files split their strings (that match the list elements) over
> > multiple lines making things a bit more involved than (if (member Ln
> List)
> I see. Then it is perhaps better not to use 'line', but 'from' / 'till', or
> perhaps even a lower level with 'char'.
> ♪♫ Alex
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to