Mono Class Library: System.IO Namespace

System.IO.File Class

Provides information and performs operations on files . [Edit]

See Also: File Members

[System.Runtime.InteropServices.ComVisible(true)]
public static class File

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

Implementations of this class are required to preserve the case of path strings. Implementations are required to be case sensitive if and only if the platform is case-sensitive.

The following table describes the enumerations that are used to customize the behavior of various System.IO.File methods.

EnumerationDescription
System.IO.FileAccessSpecifies read and write access to a file.
System.IO.FileShareSpecifies the level of access permitted for a file that is already in use.
System.IO.FileModeSpecifies whether the contents of an existing file are preserved or overwritten, and whether requests to create an existing file cause an exception.
[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0