baanfan
25th June 2002, 07:36
hello,
this is the buff string "Average ""24.06.2002 18:05:42""

scan.ret = string.scan(buff,"(%s,%s)",
read.average,read.date)
gives read.average = "average"
whereas read.date = ""

Can anybody help me how to read this string effctively.?and which is better to read an output with seperrators or without seperator..??
Can anybody help with string scan..?

NPRao
25th June 2002, 09:00
Hi,

I think you made a mistake with the function there with reading the initial string part -


string word[10]
buff = "Average ""24.06.2002 18:05:42""
scan.ret = string.scan(buff,"%s %f %U(%H:%m:%s)", word, read.average,read.date)


This should work...