Optionalopts: Optionalflag?: OpenMode | undefinedOptionalflush?: booleanOptionalmode?: Mode | undefinedStaticcacheStaticrevertStaticwriteOptionalopts: Optionalflag?: OpenMode | undefinedOptionalflush?: booleanIf all data is successfully written to the file, and flush
is true, filehandle.sync() is used to flush the data.
Optionalmode?: Mode | undefined
If all data is successfully written to the file, and
flushistrue,filehandle.sync()is used to flush the data.