skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » StringUtilities » string FromFile (string sourceFilePath, string sourceFileEncodingName)
string FromFile (string sourceFilePath, string sourceFileEncodingName)
 
Import file contents using 'sourceFileEncodingName' as the file's assumed encoding.
Parameters:
sourceFilePath
Full pathname of the source file.
sourceFileEncodingName
Name of the source file encoding.
Returns:
A string.
Import the contents of file: 'C:.txt' which was encoded using UTF-8.
<xsl:value-of select="wwstring:FromFile('C:\myfile.txt', 'UTF-8')" />
Was this helpful?
Last modified date: 10/14/2020