Re: To C.K.Lester ... re sequence .. brackets...???

new topic     » goto parent     » topic index » view thread      » older message » newer message

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! :)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu