471,348 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Mimic MS Word open document status "~foo.doc".

I've made a program where I serialize data to a file. Conceptually these
data are handled by the user just as you would a document in MS Word. Load,
Save etc.

I would like my program to prevent loading these data if the file is already
loaded in another instance of the program. Just like MS Word prevents you
from opening the same document twice (at the same time).

I was thinking about setting (and testing for) a file attribute when loading
my data and then remove the file attribute when saving. Is this a good idea
or are there any more clever alternatives that I should know of?

I see in the MS Explorer that word make a ghosted version of the file with a
prepended tilde "~foo.doc" when I open foo.doc. What does this file serve??

Jun 27 '08 #1
0 881

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Carroll | last post: by
3 posts views Thread by Thomas Guettler | last post: by
2 posts views Thread by Kai Grossjohann | last post: by
27 posts views Thread by Tom Rodman | last post: by
37 posts views Thread by Rajesh | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.