Skip to content

Instantly share code, notes, and snippets.

@abhijangda
Last active December 19, 2015 01:29
Show Gist options
  • Select an option

  • Save abhijangda/5876740 to your computer and use it in GitHub Desktop.

Select an option

Save abhijangda/5876740 to your computer and use it in GitHub Desktop.
f = open('file', 'r')
#Loop over every line and split each line over ','
s = f.readline()
_list = []
while s != '':
d = s.split(',')
_list.append(d)
s = f.readline()
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment