code: def isScopusFile(infile, checkedLines = 2, maxHeaderDiff = 3):
      
      try:
          with open(infile, 'r', encoding='utf-8') as openfile:
              if openfile.read(1) != "\ufeff":
                  return False
              for i in range(checkedLines):
                  if len(set(openfile.readline()[:-1].split(',')) ^ set(scopusHeader)) < maxHeaderDiff:
                      return True
      except (StopIteration, UnicodeDecodeError):
          return False
      else:
          return False
docs: Determines if _infile_ is the path to a Scopus csv file. A file is considerd to be a Scopus file if it has the correct encoding (`utf-8` with BOM (Byte Order Mark)) and within the first _checkedLines_ a line contains the complete header, the list of all header entries in order is found in [`scopus.scopusHeader`](#metaknowledge.scopus).
  
      **Note** this is for csv files _not_ plain text files from scopus, plain text files are not complete.
  
      # Parameters
  
      _infile_ : `str`
  
      > The path to the targets file
  
      _checkedLines_ : `optional [int]`
  
      > default 2, the number of lines to check for the header
  
      _maxHeaderDiff_ : `optional [int]`
  
      > default 3, maximum number of different entries in the potetial file from the current known header `metaknowledge.scopus.scopusHeader`, if exceeded an `False` will be returned
  
      # Returns
  
      `bool`
  
      > `True` if the file is a Scopus csv file