I have just implemented a new system for storing randarts, by writing a text file into the user directory, but it doesn't seem to be working in Windows 10.

I have tested it in Linux, and macOS, works fine. It is using essentially the same code as for writing the lore file and character dumps, and they both work fine on Windows 10 (and other platforms). When Win 10 tries to write the artifact file, though, it just creates an empty file.

Does this sound familiar to anyone? Any ideas as to what could be going wrong?

__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.

Not at all a stupid question. I suspected something of the sort, and used a different output method in the hope that it would help, and it did. I still don't understand quite why the previous method failed - my knowledge of file handling leaves something to be desired - but it works sufficiently well now so I'm happy.

__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.