generallya line read from file is just string string can be split into list of stringsinfile open('inp'' 'for line in infileline line split(fields in line can be assigned to variables and added to lists or dictionaries for line in infileline line split(xy float(line[ ])float(line[ ]coords append(( , )