write data to a file in every loop

Submitted by J_Wang on
ckloss

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

Thu, 24 Nov 2011 - 08:28 Permalink
J_Wang

In reply to by anonymous_stub (not verified)

Hi Christoph,

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

Regards

J. Wang

Thu, 24 Nov 2011 - 22:56 Permalink

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