What about this? dic = {} for line in file("findvalue.dat"): a,b,c,d = line.split() dic [a] = (float(b), float(c), float(d)) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/tutor/attachments/20071018/f4cbfdb2/attachment.htm