[Tutor] [Fwd: Re: Problems writing data into a file]

2006-12-18 Thread Stefan Heyne
output1, output2, output3, etc... for each time through the loop, or you should open the file before the loop begins and only have writes inside the loop. Then you can close the file after the loop exits. HTH, -Luke -- Stefan Heyne Laboratoire d'Energétique Ind

[Tutor] Problems writing data into a file

2006-12-18 Thread Stefan Heyne
subcycle=1) y2=m.extract('PRES',32, 1131, component='1', cycle=x, subcycle=1) # testout = (x,y1,y2,'\n') # line = str(testout) # g.write(line) print x,y1,y2 # g.close() -- Stefan Heyne Laboratoire d'Ene