SZanlongo
1/22/2015 - 10:05 PM

Read files and split data by line

Read files and split data by line

# Read files and split data by line
def readFile (filename):
    info = []
    with open(filename, 'r') as openFile:
        data = openFile.readlines()
        for line in data:
            info.append(line.split())
    return info