Re: basic output question

2008-01-25 Thread Wildemar Wildenburger
John Deas wrote: > Hi, I am very new to Python (1 evening...) > I need to process a series of files (toto-1.txt toto-2.txt toto-3.txt > toto-4.txt), and as such I created a small program to go through the > files in a directory. I want to call the script with arguments, like > > python script.py t

Re: basic output question

2008-01-25 Thread Alan Isaac
John Deas wrote: > My problem is that f.read() outputs nothing Since ``open`` did not give you an IOError, you did get a handle to the files, so this suggests that the files you read are empty... Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

basic output question

2008-01-25 Thread John Deas
Hi, I am very new to Python (1 evening...) I need to process a series of files (toto-1.txt toto-2.txt toto-3.txt toto-4.txt), and as such I created a small program to go through the files in a directory. I want to call the script with arguments, like python script.py toto- 1 1 4 my script is as f