Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VFileInfo.CreateText Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

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.

In This Article
  • CreateText()
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies