All pastes #759333 Raw Edit

Anonymous

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

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

def read_file (file):
    line =''
    for line in file:
        line += line.split(":")
    return line

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