title: Sharepoint SPFile - Get File Type
body: <p>I am using SPFile to display a list of files and I want to display the type of file, as a string, so PDF, Word, Excel etc.</p>
  
  <p>Looks like:
  FileABC                                PDF
  FileDEF                                Excel</p>
  
  <p>I have got the icon back using "ListItem.File.IconUrl", ListItem is SPListItem</p>
  
  <p>But I would like to get the file type as a name. It must work out the file type so the correct image can be displayed but I want to display the words too (for accessibility)</p>