How do I change a line in a ini file.

Thanks,
Simon