Table of Contents

Method Create

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Create(string)

Creates or overwrites a file in the specified path.

public static Stream Create(string path)

Parameters

path string

The path and name of the file to create.

Returns

Stream

A Stream that provides read/write access to the file specified in path.

Create(string, int, FileOptions)

Creates or overwrites a file in the specified path, specifying a buffer size and options that describe how to create or overwrite the file.

public static Stream Create(string path, int bufferSize, FileOptions options)

Parameters

path string

The path and name of the file to create.

bufferSize int

The number of bytes buffered for reads and writes to the file.

options FileOptions

One of the FileOptions values that describes how to create or overwrite the file.

Returns

Stream

A new file with the specified buffer size.

Create(string, int)

Creates or overwrites a file in the specified path, specifying a buffer size.

public static Stream Create(string path, int bufferSize)

Parameters

path string

The path and name of the file to create.

bufferSize int

The number of bytes buffered for reads and writes to the file.

Returns

Stream

A new file with the specified buffer size.