How to create newline in a rebol block ?

Posted by Rebol Tutorial on Stack Overflow See other posts from Stack Overflow or by Rebol Tutorial
Published on 2010-06-15T23:08:44Z Indexed on 2010/06/15 23:12 UTC
Read the original article Hit count: 218

Filed under:

let's say I have a config.txt which contains:

"param11" "param12"

"param21" "param22"

I'll load it in memory with

config: load %config.txt

I can save it back with

save %config.txt config

So far so good. Now the problem occurs for me when I want to add

"param31" "param32"

I have tried

append config reduce [newline "param31" "param32"]
save %config.txt config

But that doesn't give the expected result

"param11" "param12"

"param21" "param22"

"param31" "param32"

but this instead

"param11" "param12"

"param21" "param22" #"^/" "param31" "param32"

So how to ?

© Stack Overflow or respective owner

Related posts about rebol