All pastes #759338 Raw Edit

moreati

public text v1 · immutable
·published 2007-11-03 01:27 UTC
rendered paste body
##################################
The file has the following format

name:float1:float2:float3
##################################

def read_file (file):
    for line in file:
        yield line.split(":")

print list(read_file(open('sample_file.txt')))