title: IOException was unhandled C#
body: <pre><code>static void Main(string[] args)
      {
          File.Create("Script.txt");
          execute();
          Console.ReadKey();
      }
  
   static void execute()
      {
          if (File.Exists("Script.txt"))
          {
              string[] codex = System.IO.File.ReadAllLines("Script.txt");
              foreach (string i in codex)
              {
                  Console.WriteLine("{0} ", i);
              }
          }
          else
          {
              Console.WriteLine("The path does not exists.");
          }
      }
  </code></pre>
  
  <p>I tried this code but I get this error.
  An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll</p>