Re: [Tutor] Getting two files to print

2005-07-20 Thread Liam Clarke
Hi Philip, Ignore this if you want, but here's a simpler way to do it. fileNames = ['c:/Python24/outputs_1ubq_alignments/output_1ubq_alignments_10%.txt' ,     'c:/Python24/outputs_1ubq_alignments/output_1ubq_alignments_20%.txt' ] for f in fileNames: openFile = file(f, 'r')

Re: [Tutor] Getting two files to print

2005-07-20 Thread Andre Engels
(answer at the bottom) On 7/18/05, Philip Carl <[EMAIL PROTECTED]> wrote: > I have no more hair to pull out, so I'm asking the group for help on a > VERY simple question. I have two very similar text files to read-one > with the final letters in the name 10%.txt and the other 20%.txt. I've > wri

[Tutor] Getting two files to print

2005-07-18 Thread Philip Carl
I have no more hair to pull out, so I'm asking the group for help on a VERY simple question. I have two very similar text files to read-one with the final letters in the name 10%.txt and the other 20%.txt. I've written the following simple code to read these two files: # Program to read and p