Not sure anyone answered you but why not use load and write instead.

Paul Tretter.

----- Original Message -----
From: "Falk Stefan, ITS-SL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 15, 2001 9:32 AM
Subject: [REBOL] Saving blocks?l


> Hi list,
> I'm having a slight problem here, I'll try to explain it.
>
> First, I have a file named user-db.r that contains info like this:
>
> REBOL []
> user-db:

>      User    [
>            Name    "John"
>            Surname "Doe"
>            E-Mail  [EMAIL PROTECTED]
>      ]
> ]
> etc. etc..
>
> I read it into a script using
>
> user-db: do %user-db.r
>
> all fine, I edit some of the values (for example change the surname to
> "Doh"). And then I want to save it, so I can read it in with do %user-db.r
> again.
>
> And here come the problem, when I save (using save/header) it, the
>
> user-db: [] block disappears.
>
> All I get is
>
> REBOL []
>
> User   [
>     Name  "John"
>     Surname "Doh"
>     E-Mail [EMAIL PROTECTED]
> ]
>
> How should I save it so I get it in the original state?
> Thanks!
>
> /Regards Stefan
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to