mardi 29 mai 2018

Read and validate linux file c#

I have a linux file i can 'Cat' and read the output of. I want to then compare the file line by line to the data i'm validating against. I understand how this would work for a text file but not sure about a linux file. I've pasted a copy of my code i have for reading the file by doing a cat.

public string validateMeasurement(string measurementName, string domaianName)
    {
        var processFilePath = "/orabin/app/oracle/inputs/ff/ff/actuals/" + measurementName + ".csv.ovr";
        var actualItemData = Common.LinuxCommandExecutor.
            RunLinuxcommand("cat " + processFilePath);

        return actualItemData; 

Aucun commentaire:

Enregistrer un commentaire