The ofiles utility can open one or multiple files with a file access
mode followed by executing a command. This way a command can be tested
executing in the context of opened files.
<count> is the number of files to be opened. <count>
can be 0 up to 12.
<file_spec> specifies the file to be opened.
<mode> specifies one of the following file access modes:
mode | description |
+R | Open for read, the file has to exist. |
+W | Open for write, the file must not exist. |
+U | Open for update, the file has to exist. According to the FLEX documentation only supported for random files. |
If <file_spec> has no drive specified the working drive is used,
if no file extension is specified TXT is used.
<command> can be any standard utility command
located in the utility command space (UCS)
to be executed. See
FLEX Memory Map for details.
After processing <command> all files are closed.
<command> only is processed if all <file_specs>
have successfully been opened.