Yes, but the example you used still wouldn't work because your Temp variable
holds a String! value rather than a File! value so you would still need to
use TO-FILE.  In most cases it would be better to just give your variable a
File! value like so:

Temp: %filename.txt

That way you wouldn't have to convert it but if you need your variable to be
a String! for some reason, just be sure to use TO-FILE like so:

write/binary to-file Temp data

HTH
~~Ammon ;->


----- Original Message ----- 
From: "Chris Siegle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 14, 2004 9:22 AM
Subject: [REBOL] Re: Directory


>
> Does the same hold true for write/binary?
>
> Example:
>
> Temp: "FILENAME.TXT"
>
> write/binary Temp data
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Joel Neely
> Sent: Wednesday, January 14, 2004 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Re: Directory
>
>
> Hi, Chris,
>
> Chris Siegle wrote:
> > Why is it I cannot make a directory from an assigned variable name?
> >
> > testVariable: "12312323"
> >
> > make-dir %testVariable
>
> The argument to MAKE-DIR should be a FILE! or URL! value, not a
> STRING! value.
>
>      >> ? make-dir
>      USAGE:
>          MAKE-DIR path /deep
>
>      DESCRIPTION:
>           Creates the directory structure specified.
>           MAKE-DIR is a function value.
>
>      ARGUMENTS:
>           path -- (Type: file url)
>
>      REFINEMENTS:
>           /deep
>
>      (SPECIAL ATTRIBUTES)
>           catch
>
> therefore,
>
>      testVariable: "12312323"
>      make-dir to-file testVariable
>
> should work for you (assuming you have write permissions in the
> current directory).
>
> -jn-
>
> -- 
> ----------------------------------------------------------------------
> Joel Neely            joelDOTneelyATfedexDOTcom           901-263-4446
>
> Enron Accountingg in a Nutshell: 1c=$0.01=($0.10)**2=(10c)**2=100c=$1
>
> -- 
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
>
> -- 
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
>
>
>


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

Reply via email to