i'm beginer in tcl and i have a data in format like this:
"symbol",0.00,"12/12/2006","2:03pm",0.00,0.00,0.00,0.00,0.00
so it goes like this:
"string",real,"string","string",real,real,real,real,integer
i want to get this data to nine variables. i'm tryn' to do it by command scan but this is not working good. i've wrote something like this:
scan $data ^("%s",)%f(,")%s(",)"%s"(,)%s(,)%f(,)%f(,)%f(,)%d symbol value data time v1 v2 v3 v4 volume
anyone who can help me with this?
"symbol",0.00,"12/12/2006","2:03pm",0.00,0.00,0.00,0.00,0.00
so it goes like this:
"string",real,"string","string",real,real,real,real,integer
i want to get this data to nine variables. i'm tryn' to do it by command scan but this is not working good. i've wrote something like this:
scan $data ^("%s",)%f(,")%s(",)"%s"(,)%s(,)%f(,)%f(,)%f(,)%d symbol value data time v1 v2 v3 v4 volume
anyone who can help me with this?