Class WriteAllText
Represents an operator that opens a text file, writes the source string to the file, and then closes the file.
public class WriteAllText : Sink<string>
- Inheritance
-
WriteAllText
- Inherited Members
Properties
Append
Gets or sets a value indicating whether text should be appended to the output file if it already exists.
public bool Append { get; set; }
Property Value
Overwrite
Gets or sets a value indicating whether the output file should be overwritten if it already exists.
public bool Overwrite { get; set; }
Property Value
Path
Gets or sets the relative or absolute path of the file to open for writing.
public string Path { get; set; }
Property Value
Methods
Process(IObservable<string>)
Creates a new file, writes the string in the observable sequence to the file, and then closes the file.
public override IObservable<string> Process(IObservable<string> source)
Parameters
source
IObservable<string>The sequence containing the string to write to the file.
Returns
- IObservable<string>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of writing the string to the file.