Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: xmlfilewriter and reader
Reply to topic
Author Message
GMartin



Joined: Feb 5, 2010
Posts: 298

PostPosted: Nov 23, 2020 3:15 PM    Post subject: xmlfilewriter and reader

Jarek,

I set up a means of tracking session count based on your suggestion and it works quite well. I have been creating a new xml file for each client but that is getting unwieldy On a closed read of the manual (always a good idea) it seems that rather that creating a new file I could simply add new tags to each file, Is that truly possible? That way I could just add a client ID as a new tag and not clog up things with many different .xml files.


Thanks

George
jarek



Joined: Oct 22, 2007
Posts: 837

PostPosted: Nov 23, 2020 7:03 PM    Post subject:

Yes, it should be possible to use just one file and insert there different ids. But there is a potential caveat - if this one file gets corrupted (and can't be loaded any more), it will be reset (restored to empty content), which means all your session info will be lost. It should not be corrupted under normal operation, but it is a possibility. Maybe keeping a backup of it might be a good idea.
Reply to topic