Difference between revisions of "Save & Load"

From SoftMC-Wiki
Jump to: navigation, search
(created)
 
 
Line 1: Line 1:
  
{{Languages|File_Encryption}}&nbsp;<br/> The following example demonstrates how to save & load global variables.
+
{{Languages|File_Encryption}}&nbsp;<br/> The following example demonstrates how to save & load global variable (integer counter).
  
 
&nbsp; &nbsp;
 
&nbsp; &nbsp;

Latest revision as of 10:10, 21 March 2023

Language: English
 
The following example demonstrates how to save & load global variable (integer counter).

   

 
common shared my_counter as long
program
try 
    load my_counter.prg
    catch else
end try
my_counter = my_counter + 1
SAVE file="my_counter.prg" type = long VARIABLENAME="my_counter" MODE= NEW