write data to a file in every loop

Submitted by J_Wang on Thu, 11/24/2011 - 00:38

Hi everyone,

I'm using if and label command to generate loops in a script. I'm using the fix ave/time command to write data to a file each time running through the loop. What I want is to write data into a file every loop. But this command replace the data in the file created in every loop time. Are there any methods to add data to a file rather than replace the data in each loop?

Thanks a lot

J. Wang

ckloss's picture

ckloss | Thu, 11/24/2011 - 08:28

I never tried that - maybe you could use a fix print command that you issue and then unfix within the loop. I am sure there is a way how to do it

Christoph

J_Wang | Thu, 11/24/2011 - 22:56

Hi Christoph,

I have overcame it by using the fix print command with the append key word. Thank you very much.

Regards

J. Wang