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
  • readTextFileByPage — Reads a page of lines from a text Document, returning content and optionally total line count as a dictionary. Supports paged reading of large files to avoid memory issues.
Anonymous
Parents
  • v3.3.0 Release Notes

    • Added readTextFileByPage function for paged reading of large text files, avoiding the memory circuit breaker. Returns content as a dictionary with configurable line break preservation and an optional total line count that can be skipped on subsequent pages for better performance.

Comment
  • v3.3.0 Release Notes

    • Added readTextFileByPage function for paged reading of large text files, avoiding the memory circuit breaker. Returns content as a dictionary with configurable line break preservation and an optional total line count that can be skipped on subsequent pages for better performance.

Children
No Data