I know i'm a pain in the a**e, but how would i go about using an .ini file.

I tried the script above on my machine and works perfectly, so i assume its just an alteration to it?