[Tutor] read in text file containing non-English characters
Francis P. Boscoe
fpb01 at health.state.ny.us
Thu Jan 12 22:20:12 CET 2012
Given a simple text file of departments, capitals, longitude and latitude
separated by commas
Ahuachapán,Ahuachapán,-89.8450,13.9190
Cabañas,Sensuntepeque,-88.6300,13.8800
Cuscatlán,Cojutepeque,-88.9333,13.7167
I would like to know to how to read in the file and then access arbitary
rows in the file, so that I can print a line such as:
The capital of Cabañas is Sensuntepeque
while preserving the non-English characters
now, for example, I get
Cabañas
Thanks.
IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120112/ab8debc7/attachment.html>
More information about the Tutor
mailing list