rebol - file stop read when line reached -
i have code below begin read rest of file after have found line containing string "start"
foreach line clines [ if find [%start] line [ print line ] ]
i can't figure out documentation.. what's going on here? seems logical me.
you have read file before can search in content of file.
maybe looking like
clines: read/lines %myfile found: false foreach line clines [ if [ found found: find line "start" ] [ print line ] ]
an other way be
cfile: read %myfile print [ cfile: find cfile "start" find/tail cfile lf ]
Comments
Post a Comment