• Tutorials
  • Api Documentation
  • Download
  • Credits
Show / Hide Table of Contents
  • AutoCheck.Core
    • Output
    • Output.Log
    • Output.Style
    • Output.Type
    • Script
    • Script.ExecutionMode
    • Utils
    • Utils.OS
  • AutoCheck.Core.Connectors
    • Atom
    • Base
    • Compressed
    • Css
    • Csv
    • CsvDocument
    • Dmoj
    • GDrive
    • Html
    • Math
    • Odoo
    • Operator
    • PlainText
    • PlainText.PlainTextDocument
    • Postgres
    • Rss
    • Shell
    • TextStream
    • Xml
    • Xml.XmlNodeType
  • AutoCheck.Core.CopyDetectors
    • Base
    • Base.Mode
    • Css
    • Html
    • PlainText
    • PlainText.File
    • SourceCode
    • SqlLog
    • Xml
  • AutoCheck.Core.Events
    • LogUpdateEventArgs
    • StatusUpdateEventArgs
    • StatusUpdateEventArgs.ExecutionEvent
  • AutoCheck.Core.Exceptions
    • ArgumentInvalidException
    • ArgumentNotFoundException
    • ConfigFileMissingException
    • ConnectionInvalidException
    • ConnectorInvalidException
    • ConnectorNotFoundException
    • DocumentInvalidException
    • DownloadFailedException
    • ItemNotFoundException
    • PorpertyNotFoundException
    • QueryInvalidException
    • RegexInvalidException
    • ResultMismatchException
    • ScriptInvalidException
    • ScriptNotFoundException
    • StyleInvalidException
    • StyleNotAppliedException
    • StyleNotFoundException
    • TableInconsistencyException
    • VariableInvalidException
    • VariableNotFoundException
  • Google.DiffMatchPatch
    • Diff
    • DiffMatchPatch
    • Operation
    • Patch

Class PlainText

Allows in/out operations and/or data validations with plaint text files.

Inheritance
System.Object
Base
PlainText
Inherited Members
Base.ProcessRemoteFile(Utils.OS, String, String, String, Int32, String, Action<String>)
Namespace: AutoCheck.Core.Connectors
Assembly: AutoCheck.Core.dll
Syntax
public class PlainText : Base

Constructors

| Improve this Doc View Source

PlainText(Utils.OS, String, String, String, Int32, String)

Declaration
public PlainText(Utils.OS remoteOS, string host, string username, string password, int port, string filePath)
Parameters
Type Name Description
Utils.OS remoteOS
System.String host
System.String username
System.String password
System.Int32 port
System.String filePath
| Improve this Doc View Source

PlainText(Utils.OS, String, String, String, String)

Declaration
public PlainText(Utils.OS remoteOS, string host, string username, string password, string filePath)
Parameters
Type Name Description
Utils.OS remoteOS
System.String host
System.String username
System.String password
System.String filePath
| Improve this Doc View Source

PlainText(String)

Creates a new connector instance.

Declaration
public PlainText(string filePath)
Parameters
Type Name Description
System.String filePath

The file path.

Properties

| Improve this Doc View Source

plainTextDoc

The plain text document content.

Declaration
public PlainText.PlainTextDocument plainTextDoc { get; }
Property Value
Type Description
PlainText.PlainTextDocument

Methods

| Improve this Doc View Source

Count(String)

Gets how many matches can be found within the document content using a regular expression.

Declaration
public int Count(string regex)
Parameters
Type Name Description
System.String regex

The regular expression which will be used to search the content.

Returns
Type Description
System.Int32

The number of matches.

| Improve this Doc View Source

Dispose()

Disposes the object releasing its unmanaged properties.

Declaration
public override void Dispose()
Overrides
Base.Dispose()
| Improve this Doc View Source

Find(String)

Gets the matches found within the document content using a regular expression.

Declaration
public string[] Find(string regex)
Parameters
Type Name Description
System.String regex

The regular expression which will be used to search the content.

Returns
Type Description
System.String[]

A set of matches.

| Improve this Doc View Source

Replace(String, String)

Replaces every match within the given content with the given replacement.

Declaration
public void Replace(string replacement, string regex)
Parameters
Type Name Description
System.String replacement

Every match will be replaced with this.

System.String regex

The regular expression which will be used to search the content.

| Improve this Doc View Source

Store(String)

Stores the current content into a local file.

Declaration
public void Store(string filePath)
Parameters
Type Name Description
System.String filePath

The path where the file will be stored, file and folder will be created if not exists.

| Improve this Doc View Source

Store(String, String)

Stores the current content into a local file.

Declaration
public void Store(string folderPath, string fileName)
Parameters
Type Name Description
System.String folderPath

The folder where the file will be stored, it will be created if not exists.

System.String fileName

The file name, it will be replaced if exists.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX