StarLogo Vocabulary:

File Commands


= used for the observer,
= used for turtles,
= used for patches


_____________________________________________________________
starlogo-directory

Reports the current directory that the starlogo application is in.
_____________________________________________________________
project-directory

Reports the directory that the current project is in. If there is no named project then it returns false.
_____________________________________________________________
project-name

Reports the current project file name. (without the pathname). If there is no named project, then it returns false.
_____________________________________________________________
save-project

Saves the current project to the file. Equivalent to doing command-s or hitting the save project menu item.
_____________________________________________________________
choose-directory-dialog

Pops up a dialog and lets the user pick a directory. It returns the directory that the user picked, or false if he hit the cancel button.
_____________________________________________________________
choose-file-dialog

Pops up a dialog and lets the user pick a file. It returns the file (full pathname) that the user picked, or false if he hit the cancel button.
_____________________________________________________________
choose-new-file-dialog

Pops up a dialog and lets the user create a new file name. It returns the filename (full pathname) that the user picked, or false if he hit the cancel button.
_____________________________________________________________
;;current-filename

_____________________________________________________________
export-turtles
filename

Saves the turtles to a file.
_____________________________________________________________
export-patches
filename

Saves the patches to a file.
_____________________________________________________________
export-turtles-and-patches
filename

Saves the turtles and the patches to a file.
_____________________________________________________________
import-turtles

Loads turtles from a file. Lets the user pick the file from a file dialog.
_____________________________________________________________
import-patches

Loads patches from a file. Lets the user pick the file from a file dialog.
_____________________________________________________________
import-turtles-and-patches

Loads turtles and patches from a file. Lets the user pick the file from a file dialog.
=============================================================