appending/writing to a file outside of the logs folder

For the purposes of one of my npc’s I’d like to be able to write/append to a file that is not necessarily in the “logs” directory.

Could gr.appendfile and gr.writefile triggerhacks be made more generic so that they can write/append to a file in any directory.

I would assume that letting people write to anywhere on the disk would be a security hole, but maybe letting them write to anything under \servers\\*?


i would like my npc to do database management.