Text File Utilities

Overview

Append, read, or read lines with filters from a text file.

Key Features & Functionality

Smart Services:

  • appendTextToFile - Append text to a text Document

Functions

  • readTextFromFile - Reads data from a text Document (any extension encoded as text) into a string, with an option to preserve line breaks
  • readMatchingLinesInFile - Reads and returns lines from a text Document which contain a provided search string
  • readMatchingLinesInFileRegex - Reads and returns lines from a text Document which match a provided Regex pattern.
Anonymous
Parents
  • Hello,

    We've found the following  bug in the ReadTextFileExpression function in version 3.0.1 of the plugin  related to the new file system api management.   

    Indeed, instead of using  cs.getDocumentInputStream(txtFile), you should 

    use cs.getDocumentInputStream(cs.getVersionId(txtFileId, ContentConstants.VERSION_CURRENT)) otherwise the behaviour is very strange (mix of version and documentid content)

    Regards 

     

Comment
  • Hello,

    We've found the following  bug in the ReadTextFileExpression function in version 3.0.1 of the plugin  related to the new file system api management.   

    Indeed, instead of using  cs.getDocumentInputStream(txtFile), you should 

    use cs.getDocumentInputStream(cs.getVersionId(txtFileId, ContentConstants.VERSION_CURRENT)) otherwise the behaviour is very strange (mix of version and documentid content)

    Regards 

     

Children
No Data