code: def file_to_list(file_name, file_location):
      
      file = __os.path.join(file_location, file_name)
      read_file = open(file, "r")
      temp_list = read_file.read().splitlines()
      read_file.close()
      return temp_list
docs: Function to import a text file to a list
      Args:
          file_name: The name of file to be import
          file_location: The location of the file, derive from the os module
  
      Returns: returns a list