Language

StandardOpenOption.TruncateExisting Property

Definition

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.

Applies to