parameters: (file_path)
docstring: Load the contents of a file into a string
docstring_summary: Load the contents of a file into a string
docstring_tokens: Load the contents of a file into a string
function: def load_file(file_path):
      """Load the contents of a file into a string"""
      try:
          with open(file_path, 'r') as file:
              return file.read()
      except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available
          return None
function_tokens: def load_file ( file_path ) : try : with open ( file_path , 'r' ) as file : return file . read ( ) except EnvironmentError : # parent of IOError, OSError *and* WindowsError where available return None