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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -