User Tools

Site Tools


tutorials:first-steps:save-load

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:first-steps:save-load [2025/03/25 11:53] – created gaetantutorials:first-steps:save-load [2025/03/25 12:00] (current) gaetan
Line 70: Line 70:
 } }
 </code> </code>
 +
 +**Note:**   
 +  * The variable ''myFloat'' is not included in the ''save'' and ''load'' methods. As a ''global'' it is automatically included in GroIMP serialization.
 +  * Any other serialization methods can be used. Here we "simply" write varName=varValue as string in a text file. But, any other approach would work (e.g. write in csv, ...). The file do not have to be within the project (as ''paramfile'' is). 
 +  * To reset the three variables to their initial values, the project needs to be either ''recompiled'' or ''reset''.
 +
 +
 +You can run the ''r()'' command to change the value of the variables. Save the project, close it, re open it, and run ''p()'' to print their current value. 
 +
tutorials/first-steps/save-load.txt · Last modified: 2025/03/25 12:00 by gaetan