I was attempting to create a filename like "anz-visa-statement [30-may-2000
27-jun-2000].r" using the to-path.
What I found was:
>>to-path "astring[anotherstring]"
== astring/[anotherstring]
>>to-path "astring anotherstring"
== astring/anotherstring
and mysteriously (to me)
>>to-path "astring anotherstring]"
** Syntax Error: Missing [ at end-of-block.
** Where: (line 1) astring anotherstring]
also somewhat unexpectedly
>> to-path #1-3-4
== 1-Mar-2004
I obviously have a limited understanding of paths. Can someone educate me in
the ways of the path please?
Or is this all there is to say about it?
I did manage to get something like my desired filename using
>>print rejoin [%anz-visa-statement to-path {[30-may-2000 27-jun-2000] }
%.r]
anz-visa-statement[30-May-2000 27-Jun-2000].r
It just misses a space.
And finally
>> print replace %anz-visa-statement--.r "--" { [30-May-2000 27-Jun-2000]}
anz-visa-statement [30-May-2000 27-Jun-2000].r
Success.
Last question: Are such filenames legal on other OSs (other than Windows)?
Brett.