def METHOD_NAME(fileList,ext):
  """
  Just a script to get the file with extension ext from the fileList.
  @ In, fileList, the string list of filenames to pick from.
  @ Out, ext, the string extension that the desired filename ends with.
  """
  found = False
  for index,inputFile in enumerate(fileList):
    if inputFile.getExt() == ext:
      found=True
      break
  if not found:
    raise IOError('No InputFile with extension '+ext+' found!')
  return index,inputFile