Hi,
I'm trying to open a file and afterwards create a list with each line read from the file.
i=0
List=[""]
for Line in inFile:
List[i]=Line.split(",")
i+=1
print List
But this sample code give me an error because of the i+=1 saying that index out of range. What's my prblem here? How can I write the code in order to increment my list with every new Line in the InFile?
Thanks for the help