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-

>how do i know that a read from ftp succeeds and how do i know which error
>occured if it fails?
>
>Thanks for all input
>
>Kai
>
>  
>


-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to