File.CreateNewFile File.CreateNewFile Method

Definition

Creates a new, empty file on the file system according to the path information stored in this file.

[Android.Runtime.Register("createNewFile", "()Z", "GetCreateNewFileHandler")]
public virtual bool CreateNewFile ();
abstract member CreateNewFile : unit -> bool
override this.CreateNewFile : unit -> bool

Returns

Exceptions

if it's not possible to create the file.

Remarks

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