title: How can i get the fileinfo of all files in a folder with GetFile()?
body: <p>I dont know whats my mistake.</p>
  
  <pre><code>FileInfo[] FileInformation = DirectoryInfo.GetFiles(textBoxPath.Text);  
  for (int i = 0; i &lt;= FileInformation.Length; i++)
  {
      File.Move(FileInformation[i].DirectoryName, FileInformation[i].Directory + "File" + i);
  }
  </code></pre>
  
  <p>VisualSudio says that here is the error: </p>
  
  <blockquote>
    <p>System.IO.DirectoryInfo.GetFiles(textBoxPath.Text);</p>
  </blockquote>