title: What is the equivalent of Len(Dir(stringVal)) of VB.net in C#
body: <p>I am new to C# and is moving some VB.net code to C#. I am stuck with the above.</p>
  
  <p>What's the equivalent of <code>Len(Dir(stringVal))</code> of VB.net in C#.net 3.0 (where <code>stringVal</code> is a string variable that takes the value of a file path e.g. <code>C:\somedir\xyz.txt</code>)?</p>
  
  <p>Thanks</p>