[GRASSLIST:2960] read site list file ??

HELLO USERS,

I have a site list file with 3 dimension like this:

518326|246143|1765#1 %0.8

How do I have to read the 3rd dimension?

while(G_site_get(fd,s)!=1)
    printf("s->east=%lf + s->north=%lf + s->dim[0]=%lf \n");

it give me segmantation fault!
instead:
while(G_site_get(fd,s)!=1)
    printf("s->east=%lf + s->north=%lf \n");

doesn't !!!!!

Should i have top use G_readsites_xyz???

THANKS YOU ALL!

--
-------------
note: change my e-mail reference to massimiliano.cannata@supsi.ch
      because the old one will be deleted soon.
-------------
Ing. Massimiliano Cannata
Istituto di Scienze della Terra - SUPSI
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 91 /935 12 25 - Fax +41 91 /935 12 09
eMail: massimiliano.cannata@supsi.ch
Internet: http://www.ist.supsi.ch

I have a site list file with 3 dimension like this:

518326|246143|1765#1 %0.8

How do I have to read the 3rd dimension?

...

it give me segmantation fault!

Try 518326|246143|1765|#1 %0.8

(missing "|" before the category symbol)

Hamish