Hi Tim,

>> help read
Reads from a file, url, or port-spec (block or object).
Arguments:
    source --  (file url object block)
Refinements:
    /binary -- Preserves contents exactly.
    /string -- Translates all line terminators.
    /direct -- Opens the port without buffering.
    /wait -- Waits for data.
    /lines -- Handles data as lines.
    /part -- Reads a specified amount of data.
        size --  (number)
    /with -- Specifies alternate line termination.
        end-of-line --  (char string)
    /mode -- Block of above refinements.
        args --  (block)
    /custom -- Allows special refinements.
        params --  (block)



===>     /lines -- Handles data as lines.

AHA.

>>foreach line read/lines [
  print ["=>" line]  ;- do something with line
]




;- Elan >> [: - )]

Reply via email to