>> line.scanf("%6s=%6s,%d,%d,%d,%d") > => ["Client", "MPEG-4", 390000, 700000, 24000] Thanks the problem I have now is that the size of the string is not fixed to 6 chars. And if I try to parse like: line.scanf("%s=%s,%d,%d,%d,%d") It doesn't parse the string. Is there a way to parse any string? thanks again -- Posted via http://www.ruby-forum.com/.