[REBOL] Re: Newbie questions
From: petr:krenzelok:trz:cz at: 2-Oct-2003 20:16
Kai Peters wrote:
>Hi all ~
>
>just stumbled upon REBOL yesterday and have started writing my first min-app
>and the following questions
>
just curious ... where have you heard of rebol, folks? Last weeks we can
see new ppl coming :-)
>have come up thus far:
>
>what is the most elegant way to read a value out of an ini file?
>
it depends upon the structure of ini file ... you can build parser for
it ... you can e.g. read/lines - that will return your file in a block
of lines, thru which you can traverse ...
>tried to find some docs on error handling but thus far have not succeeded -
>is there anything out there?
>
try [yourd code here]
attempt [your code here]
->> error? try [read %ble.bel]
== true
->> probe disarm try [read %ble.bel]
make object! [
code: 500
type: 'access
id: 'cannot-open
arg1: "/C/REBOL/View/ble.bel"
arg2: none
arg3: none
near: [read %ble.bel]
where: none
]
-pekr-