title: Compare two text files and find the difference
body: <p>How to get the lines of text in a txt file, if I compare 2 text files.
  I have 2 test files.
   mba.txt and mbanew.txt</p>
  
  <p>mba.txt </p>
  
  <pre><code>Pre-Validation/SalesandServiceinvoicing,SalesandServiceinvoicing  
  Pre-Validation/SalesandServiceinvoicing/Salesinvoice,Salesinvoice   
  IDT-BTStarProject,IDT-BTStarProject,IDT
  </code></pre>
  
  <p>mbanew.txt </p>
  
  <pre><code>Pre-Validation/SalesandServiceinvoicing,SalesandServiceinvoicing    
  Pre-Validation/SalesandServiceinvoicing/Salesinvoice,Salesinvoice     
  IDT-BTStarProject,IDT-BTStarProject,IDT  
  IDT-BTStarProject/BBP,BBP  
  IDT-BTStarProject/ARIS,ARIS  
  IDT-BTStarProject/Servicetaxratemaster,Servicetaxratemaster  
  </code></pre>
  
  <p>So i want to find out how many lines of text file have been missed out in mbanew.txt and i need get those text lines.
  here in the above example, my answer is  2 and the output  should be :</p>
  
  <pre><code>IDT-BTStarProject/BBP,BBP    
  IDT-BTStarProject/ARIS,ARIS  
  IDT-BTStarProject/Servicetaxratemaster,Servicetaxratemaster  
  </code></pre>
  
  <p>I tried with this code in PowerShell</p>
  
  <pre><code>cls
  compare-Object -referenceobject $(get-content "D:\mba.txt") -differenceobject $(get-content "D:\mbanew.txt")
  </code></pre>
  
  <p>but in vain.</p>