Class TextMemoryStream
- Namespace
- SunamoShared.Streams
- Assembly
- SunamoShared.dll
In-memory text stream backed by a file for persistence.
public class TextMemoryStream
- Inheritance
-
TextMemoryStream
- Inherited Members
- Extension Methods
Constructors
TextMemoryStream(string)
Initializes a new instance with the specified file path.
public TextMemoryStream(string path)
Parameters
pathstringThe file path to use for loading and saving.
Properties
Line
The text content buffer.
public StringBuilder Line { get; set; }
Property Value
Methods
Init()
Loads the file content into the buffer.
public Task Init()
Returns
Save()
Saves the buffer content to the file.
public Task Save()