[PLUG] Python Lists and File Reads
Rich Shepard
rshepard at appl-ecosys.com
Fri Jul 15 23:27:06 UTC 2005
On Fri, 15 Jul 2005, Shahms King wrote:
> input.read() gives you one large string. input.readlines() gives you a list
> of strings, one per line.
Shahms,
D'oh! I _did_ know this. And input.readline() reads one "record" at a time.
Thanks for the reminder,
Rich
--
Dr. Richard B. Shepard, President | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the PLUG
mailing list