title: Extract basename and extension from file name - file.txt.1
body: <p>One of our tool here maintains file in format like - file.txt.1.
  Last 1 is numeric value always and is increased on each file save , so that file system has multiple files.</p>
  
  <p>Now in another C# application I would like to process these file name. In this I want to split basename and extension. </p>
  
  <p>I used <code>Path.GetFilenameWithoutExtension()</code> and <code>Path.GetExtension()</code>. In this case they will return file.txt and .1 respectively. </p>
  
  <p>This forced me to run another round of call to get file name without extension and file extension.</p>
  
  <p>Is there any simple/smart way to have basename and extension?</p>