def write_input_txt(inputs, full_name):
    """
    Writes input parameters to simple textfile.
        - full_name includes the absolute or relative path to the file.
    """
    f = open(full_name, 'w')
    if inputs.fixed_mass:
        mass = inputs.total_mass
        sfr = 'N/A'
    else:
        mass = 'N/A'
        sfr = inputs.SFR
    if inputs.log_scale:
        dt = 'N/A'
        steps = inputs.nsteps
    else:
        dt = inputs.dt
        steps = 'N/A'
    if hasattr(inputs, 'IMF'):
        IMF = inputs.IMF
    else:
        IMF = ''
    lines = ['{:.<35}'.format('Model Name:') + '{0}\n\n'.format(inputs.
        model_name), '{:.<35}'.format('Fixed Mass:') + '{0}\n'.format(
        inputs.fixed_mass), '{:.<35}'.format('    Total Mass:') +
        '{0} M_sun\n'.format(mass), '{:.<35}'.format(
        'Continuous Star Formation:') + '{0}\n'.format(not inputs.
        fixed_mass), '{:.<35}'.format('    SFR:') + '{0} M_sun/yr\n\n'.
        format(sfr), '{:.<35}'.format('IMF:') + '{0}\n'.format(IMF), 
        '{:.<35}'.format('IMF Boundaries:') + '{0} M_sun\n'.format(inputs.
        IMF_bound), '{:.<35}'.format('IMF Exponents:') + '{0}\n'.format(
        inputs.IMF_exp), '{:.<35}'.format('    IMF Mass Limits:') +
        '{0}, {1} M_sun\n'.format(inputs.mass_lo, inputs.mass_hi), 
        '{:.<35}'.format('    SN Mass Limits:') + """{0}, {1} M_sun

""".
        format(inputs.SN_lo_mass, inputs.SN_hi_mass), '{:.<35}'.format(
        'Evolutionary Track:') + '{0}\n'.format(inputs.evolve_track), 
        '{:.<35}'.format('Metallicity') + '{0}\n'.format(inputs.metallicity
        ), '{:.<35}'.format('Wind Model:') + '{0}\n\n'.format(inputs.
        wind_model), '{:.<35}'.format('Time Limits:') + '{0}-{1} yrs\n'.
        format(inputs.start_time, inputs.end_time), '{:.<35}'.format(
        'Log Scale:') + '{0}\n'.format(inputs.log_scale), '{:.<35}'.format(
        '    dt:') + '{0} yrs\n'.format(dt), '{:.<35}'.format('    Nsteps:'
        ) + '{0}\n\n'.format(steps), '{:.<35}'.format('Mass Grid:') +
        '{0}\n'.format(inputs.mass_grid), '{:.<35}'.format('Mass Track:') +
        '{0}\n'.format(inputs.mass_track), '{:.<35}'.format(
        'Output Spectra dt:') + '{0} yrs\n'.format(inputs.spec_dt), 
        '{:.<35}'.format('Low-res Spectra Output:') + '{0}\n'.format(inputs
        .low_res_spec), '{:.<35}'.format('High-res Spectra Library:') +
        '{0}\n'.format(inputs.high_res_spec_Z), '{:.<35}'.format(
        'UV spectral library:') + '{0}\n'.format(inputs.UV_line_lib), 
        '{:.<35}'.format('RGS microturbulance:') + '{0} km/s\n'.format(
        inputs.RGS_turb_vel), '{:.<35}'.format('RGS Abundance:') +
        'Solar: {0}\n\n'.format(inputs.RGS_abund), '{:*^35}'.format(
        'Output') + '\n\n', '{:.<35}'.format('QUANTA:') + '{0}\n'.format(
        inputs.outputs['QUANTA']), '{:.<35}'.format('SNR:') + '{0}\n'.
        format(inputs.outputs['SNR']), '{:.<35}'.format('HRD:') + '{0}\n'.
        format(inputs.outputs['HRD']), '{:.<35}'.format('POWER:') + '{0}\n'
        .format(inputs.outputs['POWER']), '{:.<35}'.format('SP:') + '{0}\n'
        .format(inputs.outputs['SP']), '{:.<35}'.format('YIELDS:') +
        '{0}\n'.format(inputs.outputs['YIELDS']), '{:.<35}'.format(
        'SPECTRUM:') + '{0}\n'.format(inputs.outputs['SPECTRUM']), 
        '{:.<35}'.format('LINE:') + '{0}\n'.format(inputs.outputs['LINE']),
        '{:.<35}'.format('COLOR:') + '{0}\n'.format(inputs.outputs['COLOR']
        ), '{:.<35}'.format('WIDTH:') + '{0}\n'.format(inputs.outputs[
        'WIDTH']), '{:.<35}'.format('FEATURES:') + '{0}\n'.format(inputs.
        outputs['FEATURES']), '{:.<35}'.format('OVI:') + '{0}\n'.format(
        inputs.outputs['OVI']), '{:.<35}'.format('HIRES:') + '{0}\n'.format
        (inputs.outputs['HIRES']), '{:.<35}'.format('WRLINES:') + '{0}\n'.
        format(inputs.outputs['WRLINES']), '{:.<35}'.format('IFASPEC:') +
        '{0}\n'.format(inputs.outputs['IFASPEC'])]
    f.writelines(lines)
    f.close()
