title: SharePoint SPWeb.GetFile method with using server url and not using it at all
body: <p>I notice that when we use <strong>SPWeb.GetFile</strong> method, we can pass the whole URL or only the part of the url.</p>
  
  <p>Let's say my file exists in servername/sites/SiteA/DocumentLibrary/Folder/file.txt.
  (i omit http)</p>
  
  <p>SiteA = servername/sites/SiteA</p>
  
  <pre><code>   using (SPWeb oWebsiteFrom = new SPSite(SiteA).OpenWeb())
     {          
            SPFile oSrcSPFile = oWebsiteFrom.GetFile(ServerURL + "/" + DocLibrary+ "/" + Folder + "/" + fileName);
     }
  </code></pre>
  
  <p>This one is also OK to use without ServerURL in GetFile.</p>
  
  <pre><code>    using (SPWeb oWebsiteFrom = new SPSite(SiteA).OpenWeb())
     {          
            SPFile oSrcSPFile = oWebsiteFrom.GetFile(DocLibrary+ "/" + Folder + "/" + fileName);
     }
  </code></pre>
  
  <p>What is the difference between using serverURL and not using serverURL in GetFile method?</p>