[REBOL] Changing a String to a file? Re:

2000-05-24 Thread allenk


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 24, 2000 8:06 PM
Subject: [REBOL] Changing a String to a file?

You can use 'load to convert the string.

load  "%/path/file"
== %/path/file

type? load  "%/path/file"
== file!


Cheers,

Allen K

 
 Hello, How do I change a string such as 
 file: "%/path/file" to type: file?
 file: %/path/file
 
 thanks in advance,
 Doug
 
 




[REBOL] Changing a String to a file? Re:(2)

2000-05-24 Thread mike . yaunish

At 10:24 AM 5/24/2000 -0200, you wrote:
If you actually want to convert the string to a file type use:

file: to-file "/path/file"

Note: Don't include the % at the beginning of the string.


Thanks for the Help.  Load does the job.  

Doug

At 08:06 AM 5/24/00 -0200, you wrote:

Hello, How do I change a string such as 
file: "%/path/file" to type: file?
file: %/path/file

thanks in advance,
Doug




Mike Yaunish
[EMAIL PROTECTED]





[REBOL] Changing a String to a file? Re:(2)

2000-05-24 Thread mjelinek

Hmm, I always used 'to-file. The 5/% key is broken on my (other) keyboard.

file: to-file "/path/file"

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 24, 2000 5:24 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Changing a String to a file? Re:



Thanks for the Help.  Load does the job.  

Doug

At 08:06 AM 5/24/00 -0200, you wrote:

Hello, How do I change a string such as 
file: "%/path/file" to type: file?
file: %/path/file

thanks in advance,
Doug