Late answer to your question, Carlos,
but if each of your strings resembles exactly one line in the desired
output,
you'd normally want to use WRITE/LINES:
>>help write
USAGE:
WRITE destination value /binary /string /direct /append /no-wait
/lines /part size /with end-of-line /allow access /mode args /custom params
DESCRIPTION:
Writes to a file, url, or port-spec (block or object).
WRITE is a native value.
:
REFINEMENTS:
:
/lines -- Handles data as lines.
:
So, just WRITE/LINES %temp.tmp blk
HTH,
Christian
Sunanda schrieb:
> Carlos Lorenz wrote:
>
>> Which is the best way to append a newline at the end of each string without
>> having to show the user the newline char #"^/" ?
>>
>
> Does this do what you want?
>
> blk: ["a" "b" "c"]
> new-line/all blk 1
> save %temp.tmp a
> print read %temp.tmp
> "a"
> "b"
> "c"
>
>
> Sunanda
>
>
>
>
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.