ZenFS
    Preparing search index...

    Function readFileSync

    • Synchronously reads the entire contents of a file.

      Parameters

      • this: V_Context
      • path: PathOrFileDescriptor
      • Optionaloptions: null | { flag?: string }

      Returns NonSharedBuffer

      file contents

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

      flag Defaults to 'r'.

    • Synchronously reads the entire contents of a file.

      Parameters

      • this: V_Context
      • path: PathOrFileDescriptor
      • Optionaloptions: null | BufferEncoding | (EncodingOption & { flag?: string | undefined; })

      Returns string

      file contents

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

      flag Defaults to 'r'.