StandardOpenOption.TruncateExisting Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If the file already exists and it is opened for WRITE access, then its length is truncated to 0.
[Android.Runtime.Register("TRUNCATE_EXISTING", ApiSince=26)]
public static Java.Nio.FileNio.StandardOpenOption? TruncateExisting { get; }
[<Android.Runtime.Register("TRUNCATE_EXISTING", ApiSince=26)>]
static member TruncateExisting : Java.Nio.FileNio.StandardOpenOption
Property Value
- Attributes
Remarks
If the file already exists and it is opened for WRITE access, then its length is truncated to 0. This option is ignored if the file is opened only for READ access.
Java reference for java.nio.file.StandardOpenOption.TRUNCATE_EXISTING.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.