yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #09685
Re: [Question #249457]: Results
Question #249457 on Yade changed:
https://answers.launchpad.net/yade/+question/249457
Status: Open => Answered
Christian Jakob proposed the following answer:
Hi Diego,
For storing values, you can create a txt file and write data as ascii in
it:
f = open('myFile.txt','w') #'w' = write, 'a' = append, 'r' = read
f.write('%i %e %f' % (intValue,floatValue1,floatValue2))
f.close()
There are several other possibilities like tables, please have a look at
python manual:
https://docs.python.org/2/tutorial/inputoutput.html
Hope it helps,
Christian
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.