Language

Os.Open(String, Int32, Int32) Method

Definition

See open(2).

[Android.Runtime.Register("open", "(Ljava/lang/String;II)Ljava/io/FileDescriptor;", "")]
public static Java.IO.FileDescriptor? Open(string? path, int flags, int mode);
[<Android.Runtime.Register("open", "(Ljava/lang/String;II)Ljava/io/FileDescriptor;", "")>]
static member Open : string * int * int -> Java.IO.FileDescriptor

Parameters

path
String

The path of the file to open or create.

flags
Int32

The access mode and flags that control opening the file.

mode
Int32

The permission bits used when a new file is created, subject to the process's file-creation mask.

Returns

A file descriptor for the opened file.

Attributes

Exceptions

Remarks

See open(2).

Java documentation for android.system.Os.open(java.lang.String, int, int).

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