[PLUG] Python Lists and File Reads

Rich Shepard rshepard at appl-ecosys.com
Fri Jul 15 23:25:58 UTC 2005


On Fri, 15 Jul 2005, Holger Stephan wrote:

> Rich: input.read() gives you an array of strings, one for each line in the
> input file. Unless you parse those lines with split() or a regex function
> they are just strings, or character arrays.

Holger,

   Aha! That's useful knowledge. I had all strings on a single line, not as
individual lines. I guess there's a difference in the best input file format
if the file's to be read into a list or something else.

> Thank you for the reference you sent yesterday. I will check it out over the 
> weekend.

   You're welcome.

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