def METHOD_NAME(self, file_pattern, index=0):
    """
    Reads the file of the fan
    :param file_pattern: The filename convention
    :param index: An integer, 1-based index of the fan of which to query status
    :return: int
    """
    return_value = 0
    try:
        with open(os.path.join(self.fan_path, file_pattern.format(index)), 'r') as file_to_read:
            return_value = int(file_to_read.read())
    except IOError:
        log_err("Read file {} failed".format(self.fan_path + file_pattern.format(index)))
        return return_value
    return return_value