1. To C.K.Lester ... re sequence .. brackets...???
include file_ln.e
include get.e
sequence d
atom w
d=current_dir()
printf(1,"%s\n",{d})
w=wait_key()
Note d is without brackets....
Is this what U meant ??
Oh my gosh it ALL one day. ???
thank you
cheers,
................ I MAY GIVE IT UP & go back to Pascal..
........ nah.. not a good option ..
Frustrated...
But thank you for answering !!!
cheers,
les.r.
2. Re: To C.K.Lester ... re sequence .. brackets...???
- Posted by c.k.lester <euphoric at cklester.com>
Feb 16, 2007
-
Last edited Feb 17, 2007
Les Rogers wrote:
> include file_ln.e
> include get.e
> sequence d
> atom w
> d=current_dir()
> printf(1,"%s\n",{d})
>
> Note d is without brackets....
Your original code was
d = dir( current_dir() )
printf(1,"%s\n",{d})
So, d would equal something like
{
{ "afile.txt", "", 40, 2007, 2, 16, 13, 20, 4 }
}
To output that sequence to the screen, you would have to do something like this:
-- option 1
?d
-- option 2
printf(1,"%s\n", {d[1][1]} )
-- option 3
printf(1,"%s %d %d %d %d %d %d %d %d",d[1])
Read this: http://www.rapideuphoria.com/lib_p_r.htm#printf
Ask if you have more questions.
Easy! :)