File Operations
Keywords: sic

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> SICSIC APPEND FileIn FileOut`
  Appends file `FileIn` to `FileOut`.
  `SIC> SICSIC COPY FileIn FileOut`
  Copies file `FileIn` to `FileOut`.
  `SIC> SICSIC DELETE File`
  Deletes file named `File`. Caution: no confirmation is required.
  `SIC> SICSIC 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> SICSIC 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: SYSTEM Command: Unix-like operating Up: Interacting with the Operating Previous: Interacting with the Operating Contents Index