[REBOL] Re: Unwanted Newline
From: carl:cybercraft at: 10-Sep-2001 18:09
On 10-Sep-01, Tim Johnson wrote:
> Hello All:
> This is rebol/core on Red Hat.
> The following code produces an unwanted newline
> REBOL[]
> blks: [["name" "string"]["country" "string"]
> ["speed" "integer"]["range" "integer"]]
> headers: []
> save %test.txt blks
> ; result in the following file
> ["name" "string"] ["country" "string"]
> ["speed" "integer"] ["range" "integer"]
> ;note the the blocks are on seperate lines ; the result I am looking
> for is : [["name" "string"]["country" "string"]["speed"
> "integer"]["range" "integer"]] Note the desired outer set of braces.
> What is the simplest way to accomplish this?
This will accomplish it...
write %test.txt mold load replace/all mold blks "^/" ""
though whether it's the simplest... (:
To reload your block, use load, not read, then its type will be block!
(read would produce a string!.)
> TIA
> tj
--
Carl Read