Re: [Numpy-discussion] NOOB Alert: Looping Through Text Files...

2011-01-16 Thread Jochen Schröder
On 15/01/11 09:52, dstaley wrote: Warning, I am a python noob. Not only do I not know python, I really don't know anything about programming outside of ArcInfo and the ancient AML language. Regardless, here is my problem Let's say I have three text files (test1.txt, test2.txt and

[Numpy-discussion] NOOB Alert: Looping Through Text Files...

2011-01-14 Thread dstaley
Warning, I am a python noob. Not only do I not know python, I really don't know anything about programming outside of ArcInfo and the ancient AML language. Regardless, here is my problem Let's say I have three text files (test1.txt, test2.txt and test3.txt). Each text file has 1 line of

Re: [Numpy-discussion] NOOB Alert: Looping Through Text Files...

2011-01-14 Thread Zachary Pincus
textlist = [test1.txt, test2.txt, test3.txt] for i in textlist: text_file = open(textlist, a) text_file.write(\nI suck at Python and need help) text_file.close() But, this doesn't work. It gives me the error: coercing to Unicode: need string or buffer, list found

[Numpy-discussion] NOOB Alert: Looping Through Text Files...

2011-01-14 Thread Benjamin Root
On Friday, January 14, 2011, dstaley dsta...@usgs.gov wrote: Warning, I am a python noob.  Not only do I not know python, I really don't know anything about programming outside of ArcInfo and the ancient AML language.  Regardless, here is my problem Let's say I have three text files