File Operations
Operations on the file system can be done directly within SIC,
using the SIC command.
- SIC> SIC DIRECTORY [NewDir]
to control the working directory.
- SIC> SIC MKDIR NewDir
to create a new directory.
- SIC> SIC
SIC APPEND FileIn FileOut
Appends file FileIn to FileOut.
- SIC> SIC
SIC COPY FileIn FileOut
Copies file FileIn to FileOut.
- SIC> SIC
SIC DELETE File
Deletes file named File. Caution: no
confirmation is required.
- SIC> SIC
SIC RENAME FileOld FileNew
Renames file FileOld to FileNew.
Both files should reside on the same disk. To move files across
different disks, use SIC COPY and SIC DELETE.
- SIC> SIC
SIC FIND FileFilter
search for files with names matching the specified
filter, and return the result in a structure named dir%.
dir%nfiles is the number of files found, and dir%files[1:dir%nfiles]
their names. See the internal help for details.
The file operations through the SIC command should be used preferentially
to operations through the SYSTEM command for portability, specially
in command procedures.