That's because the Program Files folder is readonly to normal users. Your code should not be writing anything to any place under Program Files at all.
Like Bernard has said, put your data in a more appropriate place. If you don't know what that should be, read up on
this list[
^].