| :DATADIR | |
| Syntax | MAKE "DATADIR directory |
| Explanation | DATADIR is a system variable that
contains the name of the directory which is used to
substitute the text "~data" as part of a file
name. This feature allows you to use computer independent
file names just by using "~data" as part of a
file name and then setting DATADIR to the actual
directory to be used. When you install Logo, the value of :DATADIR is the Logo startup directory. To change the startup Data Directory, use the Preferences dialog box in the Edit menu or change the value of the :DATADIR variable. When you give :DATADIR a new value, the value in the Preferences dialog box also changes. |
| Example | MAKE "DATADIR
"/Logo/Data SAVE "~DATA/MYFILE.TXT (the file MYFILE.TXT is created in the directory /Logo/Data) |