hi, what is the simplest way to open two files (one for reading and 2nd for writing) ? i usually do: with open('1') as f1: with open('2','w') as f2: for i in f1: do something with i f2.write(i) is there a simpler/better way to do this ?