<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.filesystemFile.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.filesystemFile</api:function-name><api:suggest>xdmp.filesystemfile</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>filesystemfile</api:suggest><api:function-link mode="xquery" fullname="xdmp:filesystem-file">/apidoc/8.0/xdmp:filesystem-file.xml</api:function-link><api:function mode="javascript" name="filesystemFile" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.filesystemFile"><api: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 <code xmlns="http://www.w3.org/1999/xhtml">xdmp:external-binary</code> function.
</api:summary><api:params><api:param name="pathname" type="xs:string"><api:param-description>
    Pathname of the file to be read.
  </api:param-description><api:param-name>pathname</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>String</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-filesystem-file</code></p>
</api:privilege><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.filesystemFile("/etc/motd");
=&gt; contents of /etc/motd
</pre></api:example></api:function></api:function-page>