Parser Constructor (String)
Initializes a new instance of the Parser class.

Namespace: GroupDocs.Parser
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 20.8.0
Syntax
public Parser(
	string filePath
)

Parameters

filePath
Type: SystemString
The path to the file.
Remarks
Examples

The following example shows how to load the document from the local disk:

C#
// Create an instance of Parser class with the filePath
using (Parser parser = new Parser(filePath))
{
    // Extract a text into the reader
    using (TextReader reader = parser.GetText())
    {
        // Print a text from the document
        // If text extraction isn't supported, a reader is null
        Console.WriteLine(reader == null ? "Text extraction isn't supported" : reader.ReadToEnd());
    }
}
See Also