Is there a way to read and split it at the same time?
I currently use this code.
It basically reads in a semicolon delimited file and splits it into a list.
But I think there may be a more elegant way to do this.
I currently use this code.
Code:
chooseFile = raw_input ("Type File Name:")
outputFile = raw_input ("Type File Output name with extension:")
myfile=open(chooseFile,'r')
myList =[]
myList = myfile.readlines()
splitList = []
for i in myList:
splitList.append (i.split(';'))
But I think there may be a more elegant way to do this.
Comment