System.IO.FileInfo.CreateText Method

Creates a System.IO.StreamWriter that writes a new text file.

Syntax

public StreamWriter CreateText ()

Returns

A new StreamWriter.

Remarks

By default, full read/write access to new files is granted to all users.

Requirements

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