Function readText

  • Shorter version of [[readFile]] where the encoding is UTF-8.

    Parameters

    • path: string

      the path to the file to read

    • callback: ((err, text) => void)

      callback function to call with the file's text contents, or a value for err if the operation fails

        • (err, text): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • path: string

    Returns Promise<string>

Generated using TypeDoc