Java.IO.File.CreateTempFile Method
Creates an empty temporary file using the given prefix and suffix as part of the file name.

Syntax

[Android.Runtime.Register("createTempFile", "(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;", "")]
public static File CreateTempFile (string prefix, string suffix)

Parameters

prefix
the prefix to the temp file name.
suffix
the suffix to the temp file name.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif an error occurs when writing the file.

Remarks

Creates an empty temporary file using the given prefix and suffix as part of the file name. If suffix is null, .tmp is used. This method is a convenience method that calls File.CreateTempFile(string, System.String, System.String) with the third argument being null.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1