Dear sir or Madam
In my program I compute the modal masses and then I put them in a vector named modalmasses, with "lappend" command.
so modalmasses is a vector.
by "for loop" and "puts" commands I can see the results in the screen but;
How I can get an "output file" from a vector that I've built my self in the grogram.
thanxs so much
best wishes
get an "output file"
Moderators: silvia, selimgunay, Moderators
Re: get an "output file"
you can use a standard script for writing to a file
set modeMassFile [open "Modal Masses.txt" a]; # Creates a new file called "Modal Masses.txt" sets it ready for writing and links it to a variable
puts $modeMassFile $modalmasses; # Writes $modamasses to the file
close $modeMassFile; # Closes the file again
set modeMassFile [open "Modal Masses.txt" a]; # Creates a new file called "Modal Masses.txt" sets it ready for writing and links it to a variable
puts $modeMassFile $modalmasses; # Writes $modamasses to the file
close $modeMassFile; # Closes the file again
Re: get an "output file"
thanks alot