Saving Programs
Before we go any further, you may want to SAVE your program on a disc for future use. After all, it's not very useful if we have to keep typing in our programs each time we turn the computer on.
Make sure you have a blank, formatted disc (consult the computer user guide if you are unsure how to do this) and insert it in the disc drive. Make sure the label is uppermost and the sliding metal flap goes into the drive first.
To save your program, just type
SAVE "progname" <return>
The name in quotes can be anything you like, and will be the name of the file your program will be stored as on the disc. The only condition is that if you are using RISC OS less than version 4, it must be no longer than 10 characters long. It must also not contain any symbols, so it's best to keep to alphabetic letters and numbers.
Seeing what's on the disc
Type *CAT <return> and the computer will show you all the programs currently stored on your disc. You can type /*CAT at any time you like.
This is handy if you have lots of programs already stored on the disc and you want to save another program. When you type SAVE, if the program name you supply is the same as a program already on the disc, then the one on the disc will be overwritten and replaced by the new one. If you don't want this, then ensure that all filenames are unique.
Loading Programs
Deleting Files
If you wish to delete a previously saved file, you can do so by typing
*DELETE "progname" <return>
Again, be careful with this command because you cannot recover a file once it has been deleted.
Continue to lesson 4.
|
Last edit: 11th Dec 2009 at 12:49pm |
| |||||||||||
|
| ||||||||||||||||||||||||