I\'m trying to open a file and create a list with each line read from the file.
i=0 List=[\"\"] for Line in inFile: List[i]=Line.split(\",\")
It's a lot easier than that:
List = open("filename.txt").readlines()
This returns a list of each line in the file.
my_list = [line.split(',') for line in open("filename.txt")]