Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Unwanted Newline

 [1/3] from: tim::johnsons-web::com at: 9-Sep-2001 21:07


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? TIA tj

 [2/3] 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.
<<quoted lines omitted: 11>>
> "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

 [3/3] from: tim:johnsons-web at: 10-Sep-2001 9:06


On Mon, Sep 10, 2001 at 06:09:41PM +1200, Carl Read wrote:
> On 10-Sep-01, Tim Johnson wrote: > > This will accomplish it... > > write %test.txt mold load replace/all mold blks "^/" "" > > though whether it's the simplest... (:
Works for me. I like to type, as long as there isn't a lot of dollar signs. <wink>
> To reload your block, use load, not read, then its type will be block! > (read would produce a string!.)
Yes. Of course. Thanks Carl! :>) -- Tim Johnson

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted