File - Overview

The File functions allow you to open a file in a script and then read and write lines to the file. These OpusScript functions are equivalent to using the Storage actions in the Storage menu of the Actions dialog. To use these functions, you must first use the OpenFile function to create a new File object in the script.

Hierarchy:

Only the specific functions listed under the Functions: heading below can be used with File objects:

Class Hierarchy:

File

Hierarchy of objects in Opus

Functions:

Close

Close an opened file

EndOfFile

Check for the end of file marker in the specified file

GotoFirstLine

Goes to first line of an opened file

GotoNextLine

Goes to next line of an opened file

OpenFile

Opens a file and returns a new file Object

Read

Read a file that has been opened

ReadField

Reads a field in a file that has been opened

ReadLine

Reads first line of an opened file

toString

Returns the type of object as a string

Write

Write a string to an opened file

WriteField

Write a string to a field in an opened file

WriteLine

Write a string to a line in an opened file