Quantcast
Viewing all articles
Browse latest Browse all 32057

Parse txt file.

 
ALPHA_ACCESS.AUD;1  AAA_ACCESS.AUD;1    RMA_ACCESS.AUD;1    JUS_ACCESS.AUD;1
KOGIN.COM;1         MATHEW.COM;1        MASTER.MNU;1        MAR_ACCESS.AUD;1
NPR_ACCESS.AUD;1    JA_ACCESS.AUD;1
while((line = file.ReadLine())!=null){if(line.Contains("Directory ZDD0")){
                    array.Add(newDirectoryName(){ directoryname = line });Console.WriteLine(line);}elseif((line.Contains("Total of")))continue;// restart loopelseif((string.IsNullOrWhiteSpace(line)))continue;// retart loopelseif((line.Contains("Grand total")))break;// exit loop.else{How can I parse the line?4 file names?Console.WriteLine(line);}}

Viewing all articles
Browse latest Browse all 32057

Trending Articles