Table of Contents

Method CreateText

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.Legacy.dll

CreateText(string)

Creates or opens a GridFS file for writing UTF-8 encoded text.

public StreamWriter CreateText(string remoteFileName)

Parameters

remoteFileName string

The remote file name.

Returns

StreamWriter

A stream writer.

CreateText(string, MongoGridFSCreateOptions)

Creates or opens a GridFS file for writing UTF-8 encoded text.

public StreamWriter CreateText(string remoteFileName, MongoGridFSCreateOptions createOptions)

Parameters

remoteFileName string

The remote file name.

createOptions MongoGridFSCreateOptions

The create options.

Returns

StreamWriter

A stream writer.