save a file

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
alizekri
Posts: 4
Joined: Tue Aug 13, 2013 5:11 am
Location: Bahonar University

save a file

Post by alizekri »

hi all
how can I save a value in a file?
for instance, I have

set a 1

then i want to save $a as a txt file.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: save a file

Post by fmk »

set outFile [open a.txt w]
puts $outFile $a
close $outFile


http://wiki.tcl.tk/1241
alizekri
Posts: 4
Joined: Tue Aug 13, 2013 5:11 am
Location: Bahonar University

Re: save a file

Post by alizekri »

Thanks for useful info.
Post Reply