How can i select a specific element from a string?
<p>I have the following code:</p>

<pre><code>class Program
{
    static void Main(string[] args)
    {
        string linie;
        foreach (string elem in Directory.GetFiles(@"C:\Users\A\Desktop\FIles", "*.txt"))
        {
            Console.WriteLine(elem);
            StreamReader reader = new StreamReader(elem);
            {
                while (!reader.EndOfStream)
                {
                    linie=reader.ReadLine();
                    Console.WriteLine(linie);                         
                }
            }
            reader.Close();

        }
        Console.ReadKey();
        Console.WriteLine(DateTime.ParseExact("5/10/2005", "m/d/yyyy", null).Day);
    }
}
</code></pre>

<p>What i need is to select only the Date from a file.<br>
For example if i have the string "the date is 20/2/2012" in a <code>.txt</code> file, i need to substract only <code>20/2/2012</code> and to compare it with the current date. </p>
