I need to ignore a specific line while reading a file : <p>I need to ignore reading the particular line while reading the whole document. 
for example, I have chunk of data and I have read it using    File.ReadAllText(filePath); and I need to ignore reading a particular line, Say 50 and need to read the other lines. So far I have the below code.</p>

<pre><code>string fileName = "TextFile.config";
string filePath = Path.GetDirectoryName("TextFile.config") + fileName;
string text = File.ReadAllText(filePath);
</code></pre>
