Skip to main content

TextFileFormat

A class in Alta.IO, Alta.Utilities.

File format that stores a file's whole content as one string.

Constructors​

MemberWhat it is
TextFileFormat()Creates a TextFileFormat with default values.

Properties​

MemberWhat it is
string Text { get; set; }The file's text content.

Methods​

MemberWhat it is
override IAltaFileFormat Clone()Returns a new TextFileFormat with the same text.
override void ReadFrom(FileInfo info, Stream stream)Reads the whole stream into Text.
override void WriteTo(Stream stream, CancellationToken token)Writes Text to the stream. Ignores the cancellation token.