Table of Contents

Class ReadAllText

Namespace
Bonsai.IO
Assembly
Bonsai.System.dll

Represents an operator that opens a text file, returns a single string with all lines in the file, and then closes the file.

public class ReadAllText : Source<string>
Inheritance
ReadAllText
Inherited Members

Properties

Path

Gets or sets the relative or absolute path of the file to open for reading.

public string Path { get; set; }

Property Value

string

Methods

Generate()

Generates an observable sequence that opens the text file, returns a single string with all lines in the file, and then closes the file.

public override IObservable<string> Generate()

Returns

IObservable<string>

A sequence containing a single string with all lines in the file.