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(\",\")
Assuming you also want to strip whitespace at beginning and end of each line, you can map the string strip function to the list returned by readlines:
map(str.strip, open('filename').readlines())