How do i read and write to a ini files?