VFileInfo.CreateText Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
CreateText()
Method returns StreamWriter for the file. A caller must dispose the returned StreamWriter to ensure that the data written to the StreamWriter are persisted.
Declaration
public StreamWriter CreateText()
Returns
Type | Description |
---|---|
StreamWriter | StreamWriter for the file. |
Remarks
Method creates the file if it does not exist. When the file exists then the content of the existing file is truncated.
Returned instance of the StreamWriter uses UTF-8 character encoding.