"print" command

For posts concerning the documentation, errors, ommissions, general comments, etc.

Moderators: silvia, selimgunay, Moderators

Post Reply
ckolay
Posts: 8
Joined: Sat Oct 25, 2008 4:42 am
Location: Lehigh University

"print" command

Post by ckolay » Wed Aug 12, 2015 7:48 am

Hi
I'm using the print command to write the node and element information into a file. But every time I run OpenSees the node and element information get appended in the file instead of overwriting the file. So I have to manually delete the output file and before I run OpenSees which is not very convenient. How can I get the file to overwrite?
Chinmoy Kolay
PhD Candidate
Department of Civil and Environmental Engineering
Lehigh University
Bethlehem, PA, USA

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: "print" command

Post by fmk » Wed Aug 12, 2015 9:26 am

you could always do it in the tcl script before the print command using the tcl file delete command

http://wiki.tcl.tk/10058

Post Reply