writting to file
[1/3] from: carlos::lorenz::gmail::com at: 29-Jun-2005 15:10
Hi list, what's inside %lixo.txt when I save it this way?
>> write %lixo.txt "" >> empty? %lixo.txt
>> a: read %lixo.txt
>> empty? a
== true -- *:-.,_,.-:*'``'*:-.,_,.-: Carlos Lorenz *:-.,_,.-:*'``'*:-.,_,.-:
[2/3] from: Izkata:Comcast at: 29-Jun-2005 13:20
>> ? empty?
USAGE: EMPTY? series DESCRIPTION: Returns TRUE if a series is at its tail. EMPTY? is an action value. ARGUMENTS: series -- (Type: series port bitset)
>> empty? tail %Wakka
>> tail %Wakka
>> empty? %""
== true The file %Wakka doesn't exist in this example - empty? is just checking the filename, not the contents of the file. So, for your example,
>>empty? read %lixo.txt
is what would work (although it looks like you alread have it down) -Izzy Boy
[3/3] from: carlos::lorenz::gmail::com at: 29-Jun-2005 16:40
thanks IB :) 2005/6/29, Izkata <[Izkata--comcast--net]>:
> >> ? empty? > USAGE:
<<quoted lines omitted: 46>>> To unsubscribe from the list, just send an email to > lists at rebol.com <http://rebol.com> with unsubscribe as the subject.
-- *:-.,_,.-:*'``'*:-.,_,.-: Carlos Lorenz *:-.,_,.-:*'``'*:-.,_,.-:
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted