have you made any attempt?
if not, asking for the whole script is the wrong way...

read the help file or learn from other scripts (there are various that do exactly what you want)

/help on notice
/help $readini
/help $ini
/help /writeini

is probably what you need for a start...