[EMAIL PROTECTED] wrote:
> 
> Hi list,
> I've read a textfile with read/lines....is there an easy way to remove
> a line from the data?
> 
> it goes something like:
> 
> data: read/lines %blaah.txt
> 
> if find data "plupp" [remove the line] <--- of course there oughta be
> some easy code there.. ;)

This isn't the best solution but I can't seem to get 'remove to do it...

data: read/lines %blaah.txt
out-data: []
foreach line data [if not find line "plupp" [append out-data line]]

Then 'out-data should contain 'data without the offending lines.

- Chris

Reply via email to