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(\",\")
Please read PEP8. You're swaying pretty far from python conventions.
If you want a list of lists of each line split by comma, I'd do this:
l = []
for line in in_file:
l.append(line.split(','))
You'll get a newline on each record. If you don't want that:
l = []
for line in in_file:
l.append(line.rstrip().split(','))