title: while trying to write data into text file it is showing server doesnot exist in this context
body: <p>Here i have code base like this:</p>
  
  <pre><code>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("&lt;Result&gt;" + System.Security.SecurityElement.Escape(line) + "&lt;/Result&gt;");
                  writer.WriteLine(dom.DocumentElement.OuterXml);
                  line = reader.ReadLine();
              }
  
              Console.WriteLine("Completed");
              reader.Close();
              writer.Close();
          }
          catch (Exception ex)
          {
              Console.WriteLine(ex.Message);    
          }
          Console.ReadLine();
      }
  }
  </code></pre>
  
  <p>In console window it is showing "specified file does not exist", even if I have the "selectedmdx.txt" file in the same project directory.</p>
  
  <p>How can I fix it?</p>