title: Fortran: how to remove file extension from character
body: <p>I have a Fortran code that asks the user for an input file name.  The code processes that file and I would like to write out another file based on the original file name.  I think if I can understand how to remove the file extension then I can just concatenate whatever I want to the end of that.</p>
  
  <p>How do I strip off the file extension in a character?</p>
  
  <p>character(len=256):: input_file, output_file</p>
  
  <p>Original file:  AnyName.xxx</p>
  
  <p>Output file: AnyName_Output.csv</p>