Function readLines

  • Read a file into a string array of its lines.

    Parameters

    • path: string

      the path to the file to read

    • encoding: BufferEncoding

      the encoding to use to read the file

    • callback: ((err, lines?) => void)

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

        • (err, lines?): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • path: string
    • callback: ((err, lines?) => void)
        • (err, lines?): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    Returns Promise<string[]>

Generated using TypeDoc