skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » FileSystem » bool AppendFileWithFile (string targetPath, string sourcePath)
bool AppendFileWithFile (string targetPath, string sourcePath)
 
Appends one file to another file.
Exceptions:
OutOfMemoryException
Thrown when a low memory situation occurs.
Parameters:
targetPath
Full pathname of the target file.
sourcePath
Full pathname of the source file.
Returns:
True if it succeeds, false if it fails.
Append the contents of "C:\FileSampleDoc.txt" to "C:\OutputAllContent.txt".
<xsl:variable name="VarADoc">C:\\File\Sample\Doc.txt</xsl:variable>
<xsl:variable name = "VarAllDocs" > C:\\Output\All\Content.txt</xsl:variable>
<xsl:variable name = "ActionAppendingDocToAllContent" select="wwfilesystem:AppendFileWithFile($VarAllDocs, $VarADoc)" />
Was this helpful?
Last modified date: 10/14/2020