User is having trouble reading preferences files

If the file is “in use”, though, would I be able to delete it?

I checked my getPrefs method and I do have a t.close at the end of that method, so it shouldn’t still be open from that.

I also just found this similar thread from 2018, but there didn’t seem to be a resolution posted.