Since the op can manually create the ini file in that location, and the text file with the questions is also in the same directory, I can't see how he could not have write-access to the directory, and the ini file shouldn't be read-only, especially when it's being created (or supposed to be created via the script.)

Edit: The op has informed me that the directory has a read-only attribute, but he's been unable to remove that attribute. This makes no sense to me, since he's able to manually create the ini file.