yes it is doable, but unless you just want to reinvent the wheel

fist, look at readproflestring() and writeprofilestring() these to commands are made to read and write from a INI file.

also, i would take a look at this UDF GetINI() it will load a inifile into an array for you, using readprofilestring()