Table of Contents

Class FileSink

Namespace
Bonsai.IO
Assembly
Bonsai.System.dll

Provides a non-generic base class for sinks that write all elements from the source sequence to a file.

[Combinator]
[WorkflowElementCategory(ElementCategory.Sink)]
public abstract class FileSink
Inheritance
FileSink
Derived
FileSink<TSource, TWriter>
Inherited Members

Constructors

FileSink()

Initializes a new instance of the FileSink<TSource, TWriter> class.

protected FileSink()

Properties

Buffered

Gets or sets a value indicating whether element writing should be buffered. If true, the write commands will be queued in memory as fast as possible and will be processed by the writer in a different thread. Otherwise, writing will be done in the same thread in which notifications arrive.

public bool Buffered { get; set; }

Property Value

bool

FileName

Gets or sets the name of the file on which to write the elements.

public string FileName { get; set; }

Property Value

string

Overwrite

Gets or sets a value indicating whether to overwrite the output file if it already exists.

public bool Overwrite { get; set; }

Property Value

bool

Suffix

Gets or sets the suffix used to generate file names.

public PathSuffix Suffix { get; set; }

Property Value

PathSuffix