# File management

## Contents

- New OPL modules
- Copying modules
- Deleting modules
- ‘File is in use’

## New OPL modules

You can create new OPL modules in the same way as new Word documents. This can be done from the Program editor using the menu command `File | Create New File`, or from the System screen by tapping the `New file` button or selecting the menu command `File | Create New | File...`.

The module names are listed on the System screen with a Program icon next to them. The Program icon looks like a sheet of paper with `OPL` on it. Successfully translated modules will also be listed in the same folder as their corresponding Program file with the `OPL` icon next to them and a name ending in `.opo`; translated OPL applications will be automatically created in a folder under `\System\Apps\` on the current disk. The icon for translated OPL modules is just the letters `OPL` with a shadow.

To re-edit an existing OPL program, you can open the Program application and use `File | Open file` from the menu. You can also select the file directly from the System screen. This will automatically open the file and launch the Program application. Files which launch their associated applications when selected are known as documents. The application UID (unique identifier) is stored in the document header which is read by the system. As far as the user is concerned, the UID specifies a document’s type. A non-document file does not have an application UID and is displayed on the system screen with a special icon (a question mark) showing that it is unrecognised. Non-document files are known as external files.

Opening Program from its icon in the Extras bar will re-open the Program file last in use.

## Copying modules

Use the `Copy file` option in the System screen to copy modules or translated modules. You can also use the ‘`Save as`’ option in the Program editor itself, to make new copies of an OPL module.

## Deleting modules

You can delete an OPL module (or a translated version) as you would any other file. Go to the System screen, move the highlight on to the file and use the ‘Delete file’ option.

## ‘File is in use’

If you see a `‘`File`’ is in use` error message when deleting or copying an OPL module, the file is open — it is currently being edited in the Program editor. Close the file from the editor and then try again.

If it’s the translated file you’re trying to delete or copy, `‘`File`’ is in use` means that the translated file is currently running. Stop the running program by going to the running program, then either wait for the program to complete or press Ctrl+Esc to stop it, and then you can try again.