[REBOL] I'm a beginner :-) Text file manipulation. Re:

1999-11-28 Thread icimjs
Hi Mikael, one simple way to do it: result: make block! 100 remove-these: [ "get rid of this" "remove this" ] foreach line read/lines %test.txt [ foreach pattern remove-these [ if found? find line pattern [clear line] ] if length? line 0 [append/only result line] ] Note that

[REBOL] I'm a beginner :-) Text file manipulation. Re:

1999-11-28 Thread icimjs
Hi Mikael, I forgot to mention: Use write/lines to write the results of my previous example back to file: write/lines %filtered-log.txt result Elan At 02:33 AM 11/29/99 +0100, you wrote: I've just started out with some REBOL programming and the first task I was planning to solve is this: I