Here i have code base like this:
class Program
{
    static void Main(string[] args)
    {
        try
        {
            'String str;
            'str = Server.MapPath("/financila_csharp");
            StreamReader reader = new StreamReader("selectedmdx.txt");
            StreamWriter writer = new StreamWriter("selectedxmlmdx.txt");
            string line = reader.ReadLine();
            while (line != null)
            {
                XmlDocument dom = new XmlDocument();
                dom.LoadXml("<Result>" + System.Security.SecurityElement.Escape(line) + "</Result>");
                writer.WriteLine(dom.DocumentElement.OuterXml);
                line = reader.ReadLine();
            }
            Console.WriteLine("Completed");
            reader.Close();
            writer.Close();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);    
        }
        Console.ReadLine();
    }
}
In console window it is showing "specified file does not exist", even if I have the "selectedmdx.txt" file in the same project directory.
How can I fix it?
 
     
     
     
    