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

[REBOL] Keeping navigational structure into a file

From: coussement::c::itc::mil::be at: 8-Nov-2000 16:46

Hi list: I posted yesterday a mail asking for a method of keeping a block structure when saving it to a file. First I did forget the subject filed of the mail - please apologize me for being so distracted. I've been testing further and found the solution to my problem: quite simple have I to say (shame on me):
>> probe db
[cand1 [8-Nov-2000 cpi [[1 5] [2 6] [0 4]] tnv [[1 5] [0 5]]]]
>> save %test.db db >> db2: load %test.db
== [cand1 [8-Nov-2000 cpi [[1 5] [2 6] [0 4] [2 8]] tnv [[1 5] [0 5]]] ]
>> db2/cand1/cpi
== [[1 5] [2 6] [0 4] [2 8]]
>> append/only db2/cand1/cpi [4 8]
== [[1 5] [2 6] [0 4] [2 8] [4 8]]
>> probe db
[cand1 [8-Nov-2000 cpi [[1 5] [2 6] [0 4] [2 8]] tnv [[1 5] [0 5]]]] == [cand1 [8-Nov-2000 cpi [[1 5] [2 6] [0 4] [2 8]] tnv [[1 5] [0 5]]]]
>>
All works fine. (REBOL is well a great invention!) Hope this helps someother newbie like me... Kind regards to all, C. COUSSEMENT