$readini(file.ini,item1,data1) returns fine for me, could you paste the actual .ini you have ?