ZenFS
    Preparing search index...

    Function readFile

    • Asynchronously reads the entire contents of a file.

      Parameters

      • this: V_Context
      • filename: PathLike
      • cb: Callback<[Uint8Array<ArrayBufferLike>]>

        If no encoding is specified, then the raw buffer is returned.

      Returns void

      encoding The string encoding for the file contents. Defaults to null.

      flag Defaults to 'r'.

    • Asynchronously reads the entire contents of a file.

      Parameters

      • this: V_Context
      • filename: PathLike
      • options: { flag?: string }
      • Optionalcallback: Callback<[Uint8Array<ArrayBufferLike>]>

      Returns void

      encoding The string encoding for the file contents. Defaults to null.

      flag Defaults to 'r'.

    • Asynchronously reads the entire contents of a file.

      Parameters

      • this: V_Context
      • filename: PathLike
      • options: BufferEncoding | { encoding: BufferEncoding; flag?: string }
      • cb: Callback<[string]>

        If no encoding is specified, then the raw buffer is returned.

      Returns void

      encoding The string encoding for the file contents. Defaults to null.

      flag Defaults to 'r'.