Skip to main content

Files (Tools/APIs)

Work with files programmatically (read, write, copy, rename, and so on).

Background

ObjectScript provides commands for working with files and other devices.

Available Tools

In addition, InterSystems IRIS® data platform provides the following tools:

Represents disk files and provides utility methods for working with files, directories, and drives. This class includes instance methods like the following:

  • Clear()

  • Open()

  • Rewind()

  • And others

And it also contains class methods like the following:

  • ComplexDelete()

  • CopyFile()

  • ManagerDirectory()

  • NormalizeFilenameWithSpaces()

  • Rename()

  • SetReadOnly()

  • TempFilename()

  • And others

See Using %Library.File.

Availability: All namespaces.

file adapters

Enable a production to read and write files. See Using File Adapters in Productions.

These adapters are included automatically in many specialized business host classes.

Availability: All interoperability-enabled namespaces.

See Also

FeedbackOpens in a new tab