<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_trigger_parameters(filename):
 """Read the trigger parameters into trigger_parameter classes. :type filename: str :param filename: Parameter file :returns: List of :class:`eqcorrscan.utils.trigger.TriggerParameters` :rtype: list .. rubric:: Example """

    parameters = []
    f = open(filename, 'r')
    print('Reading parameters with the following header:')
    for line in f:
        if line[0] == '#':
            print(line.rstrip('\n').lstrip('\n'))
        else:
            parameter_dict = ast.literal_eval(line)
            # convert the dictionary to the class
            trig_par = TriggerParameters(parameter_dict)
            parameters.append(trig_par)
    f.close()
    return parameters