[REBOL] Re: [REBOL]
From: bo:rebol at: 10-Nov-2000 16:24
Capitaine COUSSEMENT,
Use SAVE/LOAD instead of WRITE/READ if you want to preserve REBOL datatypes.
Have fun!
-Bo
On 7-Nov-2000/13:23:08+1:00, [COUSSEMENT--C--ITC--mil--be] wrote:
>I'm now stopped in my developping work by following problem.
>I would like to store data into a file (on the HD) in a nested block
>structure, but I cannot find an elegant way to compose it from raw data:
>
>>> b: make block! []
>== []
>>> append b "the-name"
>== ["the-name"]
>>> append b "123456"
>== ["the-name" "123456"]
>>> append b [123456]
>== ["the-name" "123456" 123456]
>>> append b ["123456"]
>== ["the-name" "123456" 123456 "123456"]
>>> write %_test.txt b
>>> read %_test.txt
>== "the-name123456123456123456"
>>> bb: to-block read %_test.txt
>== [the-name123456123456123456]
>
>When I would like to get in the file something like :
>["the-name" "123456" 123456 "123456"] or [["the-name"] ["123456"] [123456]
>["123456"]]
>
>So I can use an easy-to-follow path notation to retrieve elements
>dynamicaly.
>
>Any idea ?
>
>Best regards ;-)
>
>C. COUSSEMENT
>
>--
>To unsubscribe from this list, please send an email to
>[rebol-request--rebol--com] with "unsubscribe" in the
>subject, without the quotes.
>
--
Bohdan "Bo" Lechnowsky
REBOL Adventure Guide
REBOL Technologies 707-467-8000 (http://www.rebol.com)
The Official Source for REBOL Books (http://www.REBOLpress.com)