Sorry if I was too short on my post, I was entering in a meeting.
But that's the whole thing,
you should think and try to get the best solution. An advice, when I designed my application I did separete the locking class and the database class. So I have a utility class that care about my locking mechanism and another class that implements the provided interface. But the class that implements the provided interface isn't yet my real class, It access another class that handle the file write and load. =)
Well, when you finish , please post an idea of what is your solution and why is it that way.
=)
On this forum you have experts like Roel, Perillo, will be pretty hard you get a question without a clear anwser =)
[]s