Share via


File.Create Method

Creates or overwrites the specified file.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static FileStream Create (
         stringpath,
         intbufferSize
)

Parameters

  • path
    The name of the file.
  • bufferSize
    The number of bytes buffered for reads and writes to the file.

Return Value

A FileStream with the specified buffer size that provides read/write access to the file specified in path.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

File Class
File Members
System.IO Namespace