Difference between revisions of "Save"

From MiniScript Wiki
Jump to navigation Jump to search
(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...")
 
 
Line 1: Line 1:
In [[Mini Micro]], the <c>save</c> command saves the current program to disk.  Syntax:
+
In [[Mini Micro]] and [[Farmtronics]], the <c>save</c> command saves the current program to disk.  Syntax:
  
 
   save ''path''
 
   save ''path''
Line 15: Line 15:
  
 
[[Category:Mini Micro]]
 
[[Category:Mini Micro]]
 +
[[Category:Farmtronics]]

Latest revision as of 03:26, 7 May 2022

In Mini Micro and Farmtronics, 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"