FileQuery 8.0.0

Query actual file on your file system.

Install-Package FileQuery -Version 8.0.0
dotnet add package FileQuery --version 8.0.0
<PackageReference Include="FileQuery" Version="8.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FileQuery --version 8.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

// FileQuery
// Query a file on your system

var fileName = @"C:\Work\Myfile.cs";

    var fileQuery = new FileQuery.QueryFile();

var check = fileQuery.Query(fileName);

        foreach (var item in check)
        {
            Console.WriteLine(item);
        }


// Convert to JSON
var json = fileQuery.ToJson();

        Console.WriteLine(json);
	

    // Query specific TEXT in the file..
var checkBool = fileQuery.Query(fileName).Select(a => a.IndexOf("N/A") > -1).ToList();

    foreach (var item in checkBool)
    {
        Console.WriteLine(item);
    }

// FileQuery
// Query a file on your system

var fileName = @"C:\Work\Myfile.cs";

    var fileQuery = new FileQuery.QueryFile();

var check = fileQuery.Query(fileName);

        foreach (var item in check)
        {
            Console.WriteLine(item);
        }


// Convert to JSON
var json = fileQuery.ToJson();

        Console.WriteLine(json);
	

    // Query specific TEXT in the file..
var checkBool = fileQuery.Query(fileName).Select(a => a.IndexOf("N/A") > -1).ToList();

    foreach (var item in checkBool)
    {
        Console.WriteLine(item);
    }

Release Notes

Performance improvements

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
8.0.0 254 7/4/2018
7.0.0 216 7/4/2018
6.0.0 225 7/4/2018
5.0.0 227 7/4/2018
4.0.0 216 7/3/2018
3.0.0 234 7/3/2018
2.0.0 195 7/3/2018
1.0.0 233 7/2/2018