Re: [Tutor] How do I go from a textFile.txt to a list [] AND from a textFile.txt to a dictionary of dictionaries?

2012-07-22 Thread Walter Prins
Hi Greg, Try this (next time try solving yourself first and post what you've done and specific problems you're having trouble with.): import csv # read data using csv reader... fileobj = open('text_data.txt') csvreader = csv.reader(fileobj, delimiter=';') csvreader.next() # skip header # store

Re: [Tutor] How do I go from a textFile.txt to a list [] AND from a textFile.txt to a dictionary of dictionaries?

2012-07-22 Thread Mark Lawrence
On 22/07/2012 23:33, Gregory Lund wrote: Only my second try to post to this list. This is a dumb question with a simple (I presume) solution... but... how do I take a txt file with semicolon separated values and create a dictionary and a list? ( in 2.6 because I'm working with ArcGIS.) text file

[Tutor] How do I go from a textFile.txt to a list [] AND from a textFile.txt to a dictionary of dictionaries?

2012-07-22 Thread Gregory Lund
Only my second try to post to this list. This is a dumb question with a simple (I presume) solution... but... how do I take a txt file with semicolon separated values and create a dictionary and a list? ( in 2.6 because I'm working with ArcGIS.) text file is as follows: (saved as text_data.txt) (i