Title here
Summary here
Writes data into a text file. Each line in the output is created by calling the WriteLineFunc or by invoking ToString() on the object.
public class TextDestination<TInput> : DataFlowStreamDestination<TInput>, IDataFlowStreamDestination<TInput>, IDataFlowStreamDestination, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Name | Description |
---|---|
TInput | Type of ingoing data. |
The default ResourceType for a TextDestination is a file.
public TextDestination()
public TextDestination(string filename)
Type | Name | Description |
---|---|---|
string | filename | Will set the Uri to the given file name. |
public TextDestination(string filename, Func<TInput, string> writeLineFunc)
Type | Name | Description |
---|---|---|
string | filename | Will set the Uri to the given file name. |
Func<TInput, string> | writeLineFunc | Sets the WriteLineFunc |
Before any rows are processed, the output of this function is written at the beginning of the output file.
public Func<string> WriteHeaderFunc { get; set; }
Type | Description |
---|---|
Func<string> |
Defines how each row from the input is written into the file. The input for the Func is an object of the ingoing data type and return a string that is written into the target.
public Func<TInput, string> WriteLineFunc { get; set; }
Type | Description |
---|---|
Func<TInput, string> |
protected override void CheckParameter()
protected override void CloseStream()
protected override void InitStream()
protected override void WriteIntoStream(TInput data)
Type | Name | Description |
---|---|---|
TInput | data |