next up previous contents index
Next: SYSTEM Command: Unix-like operating Up: Interacting with the Operating Previous: Interacting with the Operating   Contents   Index


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$\backslash$SIC APPEND FileIn FileOut
Appends file FileIn to FileOut.
SIC> SIC$\backslash$SIC COPY FileIn FileOut
Copies file FileIn to FileOut.
SIC> SIC$\backslash$SIC DELETE File
Deletes file named File. Caution: no confirmation is required.
SIC> SIC$\backslash$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$\backslash$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.


next up previous contents index
Next: SYSTEM Command: Unix-like operating Up: Interacting with the Operating Previous: Interacting with the Operating   Contents   Index
Gildas manager 2024-04-19