You canīt save to wrs at runtime. You have to copy the file via file_cpy out of the wrs, then you can alter it and save it. The engine will use this file from now on, not the one in the wrs. However, itīll be visible to everyone, then.
Maybe you can encrypt it.
Manual (@file_cpy)
For copying a text file from a .wrs resource, rename the file to "*.pak" and add it to the resource with a BIND statement in a .wdl file, or a PRAGMA_BIND in a .c file (f.i. #define PRAGMA_BIND "mytext.pak";). At runtime, copy the text file from the resource with file_cpy("mytext.txt","mytext.pak");. The resource must either exist in the work folder, or be opened by add_resource.