How to compare the contents of two text files received from notepad??
How to compare the contents of two text files for example notepad?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Shen Hengbin94 reputationPosted Jul 21, 2012, 4:25 AM EDT
By code(c#) :
File.WriteAllLines("FileC.txt", File.ReadAllLines("FileB.txt").Except(File.ReadAllLines("FileA.txt")));