MrKWatkins.Ast Help

TextFile Class

Definition

A text SourceFile.

public sealed class TextFile : SourceFile, IEquatable<SourceFile>, IEqualityOperators<SourceFile, SourceFile, Boolean>

Constructors

Name

Description

TextFile(FileInfo)

Initialises a new instance of the TextFile class from a file on disk.

TextFile(String, Stream)

Initialises a new instance of the TextFile class from a Stream containing the file.

TextFile(String, String)

Initialises a new instance of the BinaryFile class from a string containing the file.

Properties

Name

Description

Lines

The individual lines in the file.

Text

The text of the file.

Methods

Name

Description

CreateEntireFilePosition()

Creates a TextFilePosition from this TextFile that represents the whole file.

CreatePosition(Int32, Int32, Int32, Int32)

Creates a TextFilePosition from this TextFile.

Last modified: 09 September 2024