title: getting file path through console c#
body: <p>i have a program where i want to get filepath from console, for example program asks me to type a path of file, but here is the problem i dont want to write the whole path down. I would like to eather use openfiledialog or create a text file within the solution and get path from there. Here is a short code from the section:</p>
  
  <pre><code>string input;
  Console.WriteLine("Type path file: ");
  input = Console.ReadLine();
  
  string readText = File.ReadAllText(input);
  
  Tree HuffmanTree = new Tree();
  
  // Build the Huffman tree
  HuffmanTree.Build(readText);
  </code></pre>
  
  <p>And i already created a Text.txt file within aplication, and i am making console aplication in c#. The error is that the program cant find a path name eg. Text.txt but if i use whole path instead of "input" program works.</p>