Save
Revision as of 02:28, 19 January 2021 by JoeStrout (talk | contribs) (Created page with "In Mini Micro, the <c>save</c> command saves the current program to disk. Syntax: save ''path'' If the current program was previously saved or loaded, then no argumen...")
In Mini Micro, the save
command saves the current program to disk. Syntax:
save path
If the current program was previously saved or loaded, then no argument is required; save
by itself saves the program to its previous location. If it is a new program that has never been saved, or you want to save to a different location, then you must specify the (full or partial) path for the program file as an argument to save
.
Note that the file extension (.ms
) is optional in both save
and load
.
Example
The following commands launch the editor, where you could type some code; and then upon exiting the editor, saves that code to a file called "myProgram.ms" in the current directory.
edit
save "myProgram"