C# を使用して、あるファイルの選択した部分を別のファイルにコピーしたい
たとえば、次の内容のファイルがあるとします。
<div id="1"> contents of this div.. </div>
<div id="2"> contents of this div.. </div>
<div id="3"> contents of this div.. </div>
<div id="2"> contents of this div.. </div>
行のみを新しいファイルにコピーしたい場合。では、どうすればこれを効率的に行うことができますか?