Thanks Elan:
Your discussion is very helpful. As to your
question:
>I haven't been following this thread, so I don't know why you are using
>ports. Generally speaking, it is often more convenient to use higher
As to the above, I want re-usable code that will allow me
to easily write to
Hi t,
A file! type is a filename with a leading % character. Example: %myfile.r
%/c/mydir/. A file! may be any type of file, including a directory.
A port! datatype is a low-level i/o abstraction that REBOL uses to
serialize different types of i/o channels, such as files (here we are not
talking
rify for me?
regards :>)
tim
At 11:13 AM 4/2/00 +0200, you wrote:
>Hi,
>
>- Puvodní zpráva -
>Od: <[EMAIL PROTECTED]>
>Komu: <[EMAIL PROTECTED]>
>Odesláno: 2. dubna 2000 7:33
>Predmet: [REBOL] [REBOL]Problem with function argument
>
>
>> Hello
Hi [EMAIL PROTECTED]:
when you do an 'open, you don't get a file!, but a port.
so change your func this way:
fprint: func [fp[port!] value[string!]] [
either not-equal? fp none [
; thou canst write on a port, just append ...
append fp value
append fp newline
] [
pr
Hi,
- Puvodní zpráva -
Od: <[EMAIL PROTECTED]>
Komu: <[EMAIL PROTECTED]>
Odesláno: 2. dubna 2000 7:33
Predmet: [REBOL] [REBOL]Problem with function argument
> Hello All:
>
> I am getting an error message when attempting
> to pass a value as a argument to a
hope that helps.
Andrew Martin
Awakening the dragon... (in another universe) :-)
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, 2 April 2000 5:33 PM
Subject: [REBOL] [REBOL]Proble
Hello All:
I am getting an error message when attempting
to pass a value as a argument to a user-defined
function:
the error message is:
fprint expected fp argument of type: file.
** Where: fprint fp "line one"
code follows: thanks in advance to all!!
tim
; first the function
fprint: f