MarkLogic Server 11.0 Product Documentation
xdmp.filesystemFile

xdmp.filesystemFile(
   pathname as String
) as String

Summary

Reads a file from the filesystem. The file at the specified path must be UTF-8 encoded. This function is typically used for text files; for binary files, consider using the xdmp.externalBinary function.

Parameters
pathname Pathname of the file to be read.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-filesystem-file

Example

xdmp.filesystemFile("/etc/motd");
=> contents of /etc/motd
Powered by MarkLogic Server | Terms of Use | Privacy Policy