title: Validating File Path w/Spaces in C#
body: <p>I'm something of a n00b at C# and I'm having trouble finding an answer to this, so if it's already been answered somewhere feel free to laugh at me (provided you also share the solution). :)</p>
  
  <p>I'm reading an XML file into a GUI form, where certain elements are paths to files that are entered into TextBox objects.  I'm looping through the controls on the form, and for each file path in each TextBox (lol there's like 20 of them on this form), I want to use File.Exists() to ensure it's a valid file.</p>
  
  <p>The problem with this is that the file path can potentially contain spaces, and can potentially be valid; however File.Exists() is telling me it's invalid, based entirely on the spaces.  Obviously I can't hard-code them and do something like</p>
  
  <p><code>if (File.Exists(@"c:\Path To Stuff"))</code></p>
  
  <p>and I tried surrounding the path with ", like</p>
  
  <p><code>if (File.Exists("\"" + contentsOfTextBox + "\""))</code></p>
  
  <p>but that didn't make a difference.  Is there some way to do this?  Can I escape the spaces somehow?</p>
  
  <p>Thank you for your time. :)</p>