Show / Hide Table of Contents

TextInteractor

Below are links to examples of how you would use the TextInteractor class and it's methods

  • ReadLine
  • Compare
  • Find
  • Replace

Sample code

Text.txt

Hello world

TextComparer.cs

public class TextComparer
{
    using TextInteractor;

    public static Main(string[] args)
    {
        TextFile file = new TextInteractor("Text.txt")
        file.Open();
        Console.Writeline(file.ReadLine());
        //Hello World
        file.Close();
    }
}

Notes

  • The when calling a method from the textInteractor object, the method will automaticaly open the file if it is not opened yet.
  • Improve this Doc
Back to top Generated by DocFX