Re: Processing file with lists.

2010-11-25 Thread Alice Bevan–McGregor
You describe a two-part problem. The first, loading the data, is easily accomplished with the Python CSV module: http://docs.python.org/library/csv.html e.g.: reader = csv.reader(open('filename', 'rb'), delimiter=';', quotechar=None) In the above example, you can iterate over 'reade

Processing file with lists.

2010-11-25 Thread Geobird
I have a text file , having fields delimited by ; in the first line and all the way down is the data taken for those fields . Say FAMILY NAME;SPECIES/SUBSPECIES;GENUS NAME;SUBGENUS NAME;SPECIES NAME;SUBSPECIES NAME;AUTHORSHIP Acrididae;Acanthacris ruficornis (Fabricius, 1787);Acanthacris;;r