ZenFS
    Preparing search index...

    Function writeFileSync

    • Synchronously writes data to a file, replacing the file if it already exists.

      The encoding option is ignored if data is a buffer.

      Parameters

      • this: V_Context
      • path: PathOrFileDescriptor
      • data: FileContents
      • Optionaloptions: WriteFileOptions

      Returns void

      encoding Defaults to 'utf8'.

      mode Defaults to 0644.

      flag Defaults to 'w'.

    • Synchronously writes data to a file, replacing the file if it already exists.

      The encoding option is ignored if data is a buffer.

      Parameters

      • this: V_Context
      • path: PathOrFileDescriptor
      • data: FileContents
      • Optionalencoding: BufferEncoding

      Returns void

      encoding Defaults to 'utf8'.

      mode Defaults to 0644.

      flag Defaults to 'w'.