Skip to main content

Filesystem

CurrentDirectory

Returns the directory that the currently only spreadsheet is saved.

Useful for creating relative filepaths for spreadsheets that output reports, allowing them to be easily shared with colleagues.

=ArupCompute.FileSystem.CurrentDirectory()

No input arguments

tip

This function will only work when the Excel document has been saved.

ReadFile

Reads the contents of a file on disk.

ArupCompute.FileSystem.ReadFile(...

ArgumentTypeDescription
pathtextFilepath (including extension) of the file to be read

WriteFile

Writes text content to a file on disk.

ArupCompute.FileSystem.WriteFile(...

ArgumentTypeDescription
pathtextFilepath (including extension) of the file to be written
contentstextData to be written into the file